ActionPicker

ActionPicker is an interactive replication of iOS-style action sheets that are widely used across the system to setup AirPods, HomePod, etc.

header_v2

Usage

  1. Import ActionPicker
import ActionPicker
Swift
  1. Present your content
let setupViewController = /* Your awesome view controller */
let actionPickerViewController = ActionPickerViewController(contentViewController: setupViewController)
self.present(actionPickerViewController, animated: false, completion: nil)
Swift
  1. Dismiss
actionPickerViewController.dismiss(animated: true, completion: nil)
Swift

Note: Since ActionPickerViewController is interactive, other dismissal options are available:

  • Tap outside the content view
  • Pan content view out of the screen

Let's see in action

demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

ActionPicker requires iOS11+.

Installation

ActionPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ActionPicker'
Ruby

Author

Serg Krivoblotsky, krivoblotsky@me.com

Roadmap

See Issues

GitHub