Skip to content

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, gaoyu.dreamer@gmail.com

License

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

About

YGUI

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages