https://github.com/logisticinfotech/customactionsheet
https://github.com/logisticinfotech/customactionsheet
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/logisticinfotech/customactionsheet
- Owner: logisticinfotech
- License: mit
- Created: 2019-04-04T14:46:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-25T06:06:20.000Z (almost 7 years ago)
- Last Synced: 2025-02-02T22:01:42.597Z (over 1 year ago)
- Language: Swift
- Size: 65.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LICustomActionSheet
==================================
LICustomActionSheet provide the simple way to use different type of actionsheet.
[](https://travis-ci.org/vvdodiya/LICustomActionSheet)
[](https://cocoapods.org/pods/LICustomActionSheet)
[](https://cocoapods.org/pods/LICustomActionSheet)
[](https://cocoapods.org/pods/LICustomActionSheet)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
LICustomActionSheet is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'LICustomActionSheet'
```
## How to use
1. Import LICustomActionSheet in your class to use LICustomActionsheet:
import LICustomActionSheet
2. Create object of LICustomActionSheet using create() method like below:
var objCustomActionSheet = LICustomActionSheetVC.create()
3. To present simplay Call loadActionSheet() using object of LICustomActionSheet:
objShowGetImageActionSheet.loadActionSheet(fromView: self, arrEmoji: nil, arrActionData: arrActionData, type: .regular)
Here,
- fromView : fromView is the object of your object of your class to handle delegate method of LIActionsheet. This parameter is Required.
- arrEmoji: If you want to display Emoji actionsheet than you need to pass array of emoji name and need to add images in the your project.
- arrActionData: arrActionData is array of action name which you want to display in the action sheet.
- type: you can set type of actionsheet. e.g. regular and sectionWise
## Customization
### Colors
`actionButtonTextColor` - standard color for LICustomActionSheet's buttons
`cancelButtonTextColor` - color for the cancel button.
## Author
### Vishal Dodiya
@Logistic Infotech Pvt Ltd.
## License
LICustomActionSheet is available under the MIT license. See the LICENSE file for more info.