Skip to content

Instantly share code, notes, and snippets.

@ennioma
Created March 21, 2017 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ennioma/b8149594ea143a8b501c76bec4e9df31 to your computer and use it in GitHub Desktop.
Save ennioma/b8149594ea143a8b501c76bec4e9df31 to your computer and use it in GitHub Desktop.
import UIKit
import arek
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let config = ArekConfiguration(frequency: .JustOnce, presentInitialPopup: true, presentReEnablePopup: true)
let initialData = ArekPopupData(title: "a title", message: "a message", image: "", allowButtonTitle: "please allow", denyButtonTitle: "deny", type: .native)
let reEnableData = ArekPopupData(title: "another title", message: "another message", image: "", allowButtonTitle: "please allow", denyButtonTitle: "deny", type: .native)
let p = ArekContacts(configuration: config, initialPopupData: initialData, reEnablePopupData: reEnableData)
p.manage { (status) in
// ...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment