Skip to content
/ Alert Public

[WIP]An iOS framework for effectively building alerts encouraged by HIG

License

Notifications You must be signed in to change notification settings

naoty/Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alert

An iOS framework for effectively building alerts encouraged by HIG

Usage

let alert = Alert.Confirmation(error)
presentViewController(alert.viewController, animated: true, completion: nil)

confirmation

let recovery = Recovery(name: "Recover", style: .Destructive) { action in
    print("Recover!!")
}
let alert = Alert.Suggestion(error, recovery)
presentViewController(alert.viewController, animated: true, completion: nil)

desructive_suggestion

let recovery = Recovery(name: "Recover", style: .Nondestructive) { action in
    print("Recover!!")
}
let alert = Alert.Suggestion(error, recovery)
presentViewController(alert.viewController, animated: true, completion: nil)

nondesructive_suggestion

Installation

Carthage

github "naoty/Alert"

CocoaPods

pod "NTYAlert"

Author

naoty

About

[WIP]An iOS framework for effectively building alerts encouraged by HIG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published