OptionsView is a minimal solution to provide a drop down like functionality in iOS. It comes in neutral hues to fit into any app's color theme and satisfies most use cases without having to touch the source. But you can always customize it in the source.
- Works on iOS 9.0+
- Swift 3.0 compatible
- Orientation support
Just download the source and add it to your project.
@IBAction func showPopover(sender: AnyObject) {
let placesToVisit = ["Paris", "Rome", "Venice", "Bali", "Denver"]
let optionsView = OptionsView(options: placesToVisit, selectedIndex: 2, dismissWithoutSelection: true)
optionsView.showInView(view) { selectedIndex in
print("SelectedIndex: \(selectedIndex)")
}
}