UIViewController container for UIPickerView
Add PGCPickerViewController folder into your project.
Check folder Example :)
Conforms to PickerSingleOption
protocol
let pickerSource: PickerSingleOption!
// ...
let controller = PGCPickerViewController.with(pickerOption: pickerSource) { [weak self] (indexSelected) in
self?.pickerSource.currentIndexSelected = indexSelected // Save selection
// Do stuff with indexSelected
// self?.select(index: indexSelected)
}
self.present(controller, animated: false, completion: nil)
// TODO
This program is free software; you can redistribute it and/or modify it under the terms of the MIT License.