cybertk / CKPickerView

A UIPickerView drop-in replacement with support for titles and Selection Indicator customization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CKPickerView

A UIPickerView drop-in replacement with support for titles and Selection Indicator customization.

CI Status codebeat badge Carthage compatible Version Platform

screenshot 1 screenshot 2

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

import CKPickerView

let 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. To install it, simply add the following line to your Cartfile:

github "cybertk/CKPickerView"

Cocoapods

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

pod "CKPickerView"

Author

@cybertk

License

CKPickerView is available under the MIT license. See the LICENSE file for more info.

About

A UIPickerView drop-in replacement with support for titles and Selection Indicator customization

License:MIT License


Languages

Language:Swift 75.3%Language:Ruby 9.7%Language:Shell 8.0%Language:Makefile 4.5%Language:Objective-C 2.4%