Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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