Description
Customizable wheel picker view implementation for iOS.
A simple yet customizable horizontal and vertical picker view.
WheelPicker alternatives and similar libraries
Based on the "Table View / Collection View" category.
Alternatively, view WheelPicker alternatives based on common mentions on social networks and blogs.
-
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
MCSwipeTableViewCell
DISCONTINUED. 👆 Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app). -
HGPlaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project -
ReverseExtension
A UITableView extension that enables cell insertion from the bottom of a table view. -
Bohr
DISCONTINUED. Bohr allows you to set up a settings screen for your app with three principles in mind: ease, customization and extensibility. -
CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift -
CascadingTableDelegate
A no-nonsense way to write cleaner UITableViewDelegate and UITableViewDataSource in Swift. -
ListPlaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views. -
GLTableCollectionView
Netflix and App Store like UITableView with UICollectionView, written in pure Swift 4.2 -
KDDragAndDropCollectionView
This component allows for the transfer of data items between collection views through drag and drop -
DataSources
💾 🔜📱 Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode) -
DTTableViewManager
Protocol-oriented UITableView management, powered by generics and associated types. -
TLIndexPathTools
TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views. -
CollapsibleTableSectionViewController
:tada: Swift library to support collapsible sections in a table view. -
RHPreviewCell
I envied so much Spotify iOS app this great playlist preview cell 😍, I decided to create my own one 🌶. Now you can give your users ability to quick check "what content is hidden under your UITableViewCell". Great think is that this Library not requires 3D Touch support from user device💥. -
SquareMosaicLayout
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond: -
HoverConversion
DISCONTINUED. HoverConversion realized vertical paging with UITableView. UIViewController will be paging when reaching top or bottom of UITableView contentOffset. -
GenericDataSource
A generic small reusable components for data source implementation for UITableView/UICollectionView in Swift. -
PJFDataSource
PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a consistent user interface for common content states (i.e. loading, loaded, empty, and error). -
AZCollectionViewController
Easy way to integrate pagination with dummy views in CollectionView, make Instagram "Discover" within minutes. -
ios-dragable-table-cells
DISCONTINUED. Objective-C library for drag-n-drop of UITableViewCells in a navigation hierarchy of view controllers.
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of WheelPicker or a related project?
README
WheelPicker
A simple yet customizable horizontal and vertical picker view
Features
- [x] Vertical or Horizontal picker
- [x] Image or Text data
- [x] Configure UILabel & UIImageView
- [x] Flat & 3D style
- [x] Custom mask
- [x] Configure fisheye factor
Usage
- Import
WheelPicker
module to yourViewController
class
import WheelPicker
- Instantiate and set delegate and dataSource as you know. Configure
WheelPicker
if need
picker.dataSource = self
picker.delegate = self
2.1. Configure WheelPicker
if need
picker.interitemSpacing = 25.0
picker.fisheyeFactor = 0.001
picker.style = .style3D
picker.isMaskDisabled = false
picker.scrollDirection = .vertical
picker.textColor = UIColor.blue.withAlphaComponent(0.5)
picker.highlightedTextColor = UIColor.blue
- then specify the number of items using
WheelPicker
methods
func numberOfItems(_ wheelPicker: WheelPicker) -> Int
- Specify contents to be shown. You can use either texts or images
optional func titleFor(_ wheelPicker: WheelPicker, _ index: Int) -> String
optional func imageFor(_ wheelPicker: WheelPicker, _ index: Int) -> UIImage
func wheelPicker(_ wheelPicker: WheelPicker, configureLabel label: UILabel, at index: Int) {
label.textColor = UIColor.black.withAlphaComponent(0.5)
label.highlightedTextColor = UIColor.black
label.backgroundColor = UIColor.init(hue: CGFloat(index)/CGFloat(flags.count) , saturation: 1.0, brightness: 1.0, alpha: 1.0)
}
- Using both texts and images are currently not supported. When you implement both,
titleFor(_ wheelPicker: WheelPicker, at index: Int)
will be called and the other won't. - You currently cannot specify image sizes;
WheelPicker
shows the original image in its original size. Resize your images in advance if you need.
- Optional: You can use
WheelPicker
method to observe selection changesswift func wheelPicker(_ wheelPicker: WheelPicker, didSelectItemAt index: Int)
Installation with CocoaPods
To install via CocoaPods add this lines to your Podfile. You need CocoaPods v. 1.1.0 or higher
$ gem install cocoapods
Podfile
To integrate WheelPicker
into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'TargetName' do
pod 'WheelPicker', '~> 1.0'
end
Then, run the following command:
$ pod install
License
WheelPicker is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the WheelPicker README section above
are relevant to that project's source code only.