Skip to content

hhgz9527/YGActionSheetViewController

Repository files navigation

YGActionSheetViewController

CI Status Version License Platform

Example

image

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8.0, Swift 3.2

Installation

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

Usage

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)

Author

hhgz9527, [email protected]

License

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