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)
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS9+
YTSelectionPopupView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "YTSelectionPopupView"
Yigit Can Ture,
YTSelectionPopupView is available under the MIT license. See the LICENSE file for more info.