bux fixes
custom class from UIButton which open a UIAlertController with sheetStyle act like combo box.
do not use for large number of options.
class viewController: UIViewController{ @IBOutlet weak var fooButton: ActionButton! override func viewDidLoad(){ super.viewDidLoad() fooButton.dataSource = [ "option 1", "option 2" ] } } extension viewController: ActionButtonDelegate{ func actionButton(_ actionButton: ActionButton, didSelectRow index: Int){ print(index, actionButton.dataSource[index]) } }
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
ActionButton
custom class from UIButton which open a UIAlertController with sheetStyle act like combo box.
Intallation Options
⚠️ Attention
do not use for large number of options.
Example