Today, we will recommend an iOS Picker View to iOS developers.
The PickerView is a UICollectionView that provides a smooth “picking” interface.
In order to get the most out of it, a consuming view controller should support the Selectable protocol in the intended UICollectionViewCells that dictates whether a cell isSelectable.
Do want to have a boss scrolling experience like the following image?
If your answer is yes, then continue to read the below content.
The PickerView also has responsive haptic feedback that is generated upon selection and moving across cells.
Note: this view is optimized to display a medium-sized collection, given that its primary offering is allowing a user to scroll to a given cell that may be off the screen. One way to offset this natural requirement is to consider the intended size of the UICollectionViewCell that will be used.
You can run the example project:
Clone the repo, and run
pod install from the Example directory first.