CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

KVActionSheet 1.4

KVActionSheet 1.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2018
SPMSupports SPM

Maintained by Vu Van Khac.



KVActionSheet

Requirements

  • iOS 8.0+
  • Swift 3.0 or later

Installation

KVActionSheet is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'KVActionSheet', '~> 1.4'

Usage

// MARK: - Initial
let actionSheet = KVActionSheet(delegate: self, dataSource: self)
actionSheet.show()
// MARK: - KVActionSheetDelegate
func actionSheetTableView(_ tableView: UITableView, didSelectRowAtIndexPath indexPath: IndexPath) {
    
}
// MARK: - KVActionSheetDataSource
func actionSheetTableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return 4
}
    
func actionSheetTableView(_ tableView: UITableView, cellForRowAtIndexPath indexPath: IndexPath) -> UITableViewCell {
    return UITableViewCell()
}
    
func actionSheetTableView(_ tableView: UITableView, heightForRowAtIndexPath indexPath: IndexPath) -> CGFloat {
    return 50
}
    
func actionSheetHeightOfContentView() -> CGFloat {
    return 200
}

Author

Vu Van Khac, [email protected]
My Facebook: https://www.facebook.com/vuvankhac.official
My Twitter: https://twitter.com/vuvankhac

License

KVActionSheet is available under the MIT license. See the LICENSE file for more info.