Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khuong291/KPActionSheet
A replacement of default action sheet, but has very simple usage
https://github.com/khuong291/KPActionSheet
actionsheet ios swift
Last synced: 6 days ago
JSON representation
A replacement of default action sheet, but has very simple usage
- Host: GitHub
- URL: https://github.com/khuong291/KPActionSheet
- Owner: khuong291
- License: other
- Created: 2017-02-25T16:00:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T05:29:50.000Z (almost 8 years ago)
- Last Synced: 2024-11-28T22:11:56.056Z (13 days ago)
- Topics: actionsheet, ios, swift
- Language: Swift
- Homepage:
- Size: 54.7 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ios-star - KPActionSheet - A replacement of default action sheet, but has very simple usage. (UI / Font)
- awesome-ios - KPActionSheet - A replacement of default action sheet, but has very simple usage. (UI / Font)
README
# KPActionSheet
A replacement of default action sheet, but has very simple usage.
![](KPActionSheet.gif)
## Todo
Add more custom affects and styles.
## Installation
#### CocoaPods
**KPActionSheet** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'KPActionSheet', git: 'https://github.com/khuong291/KPActionSheet'
```#### Manually
1. Download and drop needed files in your project.
2. Congratulations!#### Usage
```swift
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](https://github.com/khuong291/KPActionSheet/blob/master/LICENSE.md) file for more info.