Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

A replacement of default action sheet, but has very simple usage

Awesome Lists containing this project

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.