Created
March 21, 2017 09:49
-
-
Save ennioma/b8149594ea143a8b501c76bec4e9df31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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