An iOS framework for effectively building alerts encouraged by HIG
let alert = Alert.Confirmation(error)
presentViewController(alert.viewController, animated: true, completion: nil)
let recovery = Recovery(name: "Recover", style: .Destructive) { action in
print("Recover!!")
}
let alert = Alert.Suggestion(error, recovery)
presentViewController(alert.viewController, animated: true, completion: nil)
let recovery = Recovery(name: "Recover", style: .Nondestructive) { action in
print("Recover!!")
}
let alert = Alert.Suggestion(error, recovery)
presentViewController(alert.viewController, animated: true, completion: nil)
github "naoty/Alert"
pod "NTYAlert"