Skip to content

OptionsView is a minimal solution to provide a drop down like functionality in iOS.

Notifications You must be signed in to change notification settings

sayeedhussain/iOS_OptionsView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OptionsView

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.

Features

  1. Works on iOS 9.0+
  2. Swift 3.0 compatible
  3. Orientation support

Installation

Just download the source and add it to your project.

Usage

@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)")
    }
    
}

Results

screenshot1 screenshot2

About

OptionsView is a minimal solution to provide a drop down like functionality in iOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages