KPActionSheet
A replacement of default action sheet, but has very simple usage.
Todo
Add more custom affects and styles.
Installation
CocoaPods
KPActionSheet is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KPActionSheet', git: 'https://github.com/khuong291/KPActionSheet'
Manually
- Download and drop needed files in your project.
- Congratulations!
Usage
let kpActionSheet = KPActionSheet(items: [
KPItem(title: "Hello guys π", onTap: {
print("Hello guys π")
}),
KPItem(title: "Hello girls π", onTap: {
print("Hello girls π")
}),
KPItem(title: "Cancel", type: .Cancel)
])
present(kpActionSheet, animated: true, completion: nil)
Contributor
It would be greatly appreciated when you make a pull-quest
Author
Khuong Pham, [email protected]
License
KPActionSheet is available under the MIT license. See the LICENSE file for more info.