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'
end
let 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, [email protected]
YGActionSheetViewController is available under the MIT license. See the LICENSE file for more info.