Skip to content

YTSelectionPopupView is an alternative of picker-field!

License

Notifications You must be signed in to change notification settings

yigit26/YTSelectionPopupView

Repository files navigation

YTSelectionPopupView

CI Status Version License Platform Coverage Status

Screenshots

simulator screen shot 31 may 2017 18 57 08

Usage

First of all import module

 import YTSelectionPopupView

Then you can use like this :

 let selectionView = YTSelectionPopupView.instantiate()
        selectionView.optionButtonTitleDone = "OK"
        selectionView.optionButtonTitleCancel = "Cancel"
        selectionView.optionBackgroundColor = #colorLiteral(red: 0.9529411793, green: 0.6862745285, blue: 0.1333333403, alpha: 1)
        selectionView.dataSource = self
        selectionView.delegate = self
        selectionView.optionSelectionType = .multiple // .single
        selectionView.optionDisplayStyle = .withoutTextField //  .withTextField
        selectionView.optionPopupTitle = "Title Here!"
        present(selectionView, animated: true, completion: nil)

Example

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

Requirements

iOS9+

Installation

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

pod "YTSelectionPopupView"

Author

Yigit Can Ture,

License

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