To run the example project, clone the repo, and run pod install from the Example directory first.
iOS 8.0, Swift 3.2
To install it, simply add the following line to your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/hhgz9527/YGUI.git'
use_frameworks!
target 'ProjectName' do
pod 'YGActionSheetViewController'
endlet vc = YGActionSheetViewController()
vc.text = ["1", "2"]
vc.action = { status in
switch status {
case .index(row: let row):
case .cancel:
debugPrint("cancel")
}
}
vc.modalPresentationStyle = .overFullScreen
self.present(vc, animated: false, completion: nil)
hhgz9527, gaoyu.dreamer@gmail.com
YGActionSheetViewController is available under the MIT license. See the LICENSE file for more info.
