ATActionSheet
Requirements
- iOS 9.0+
- Xcode 9.3
Installation
Just add this project as a submodule to your project.
or use CocoaPods with Podfile:
pod 'ATActionSheet'
Usage
programmatically
let actionSheet = ATActionSheet()
let addButton = ATAction(title: "Add New Item", image: #imageLiteral(resourceName: "add")) {
print("Added")
}
let shareButton = ATAction(title: "Share", image: #imageLiteral(resourceName: "action")) {
print("Share")
}
let deleteButton = ATAction(title: "Delete", image: #imageLiteral(resourceName: "trash")) {
print("Deleted")
}
actionSheet.addActions([addButton, shareButton, deleteButton])
present(actionSheet, animated: true, completion: nil)
Licence
ATActionSheet is released under the MIT license.
See LICENSE for details.