Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cybertk/CKPickerView
A UIPickerView drop-in replacement with support for titles and Selection Indicator customization
https://github.com/cybertk/CKPickerView
Last synced: 7 days ago
JSON representation
A UIPickerView drop-in replacement with support for titles and Selection Indicator customization
- Host: GitHub
- URL: https://github.com/cybertk/CKPickerView
- Owner: cybertk
- License: mit
- Created: 2015-09-06T07:24:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-19T04:55:04.000Z (over 7 years ago)
- Last Synced: 2024-08-01T19:32:11.937Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - CKPickerView - A UIPickerView drop-in replacement with support for titles and Selection Indicator customization. (Libs / UI)
README
# CKPickerView
> A UIPickerView drop-in replacement with support for titles and Selection Indicator customization.
[![CI Status](http://img.shields.io/travis/cybertk/CKPickerView.svg?style=flat)](https://travis-ci.org/cybertk/CKPickerView)
[![codebeat badge](https://codebeat.co/badges/a726525b-7a1f-43bb-9cb0-4b1acceff875)](https://codebeat.co/projects/github-com-cybertk-ckpickerview-master)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/CKPickerView.svg?style=flat)](http://cocoapods.org/pods/CKPickerView)
[![Platform](https://img.shields.io/cocoapods/p/CKPickerView.svg?style=flat)](http://cocoapods.org/pods/CKPickerView)![screenshot 1](https://cloud.githubusercontent.com/assets/455809/9780931/41d37bec-57c1-11e5-8269-d9c34983f3a1.png)
![screenshot 2](https://cloud.githubusercontent.com/assets/455809/9780934/5074bcf6-57c1-11e5-982f-0c9f8ef37283.png)## Features
- Add **Titles** on top of UIPickerView thru
- `titles` for simple strings
- `attributedTitles` for attributed strings
- `titleView` for fully customized title view
- Ability to update **Selection Indicator Color** thru `selectionIndicatorColor`
- Ability to update **Selection View's Background Color** thru `selectionBackgroundColor`## Getting started
CKPickerView is a drop-in replacement of UIPickerView with extra APIs, so you can treat CKPickerView as UIPickerView, like
```swift
import CKPickerViewlet picker = CKPickerView()
// Set picker title
picker.titles = ["Title"]
// Set selection view's background color
picker.selectionBackgroundColor = UIColor.blackColor()
// Set seliection indicator's color
picker.selectionIndicatorColor = UIColor.whiteColor()
```You can also run the example project, by cloning the repo, and open `Example` target within Xcode.
## Requirements
- iOS 8.0 and above
- Xcode 7.0 and above## Installation
### Carthage
CKPickerView is available through [Carthage](https://github.com/carthage/carthage). To install it, simply add the following line to your Cartfile:
```
github "cybertk/CKPickerView"
```### Cocoapods
CKPickerView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "CKPickerView"
```## Author
@cybertk
## License
CKPickerView is available under the MIT license. See the [LICENSE](LICENSE) file for more info.