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

Related tags

Menu CKPickerView
Overview

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.

You might also like...
Interactive view transition to display menus with flowing and bouncing effects in Swift
Interactive view transition to display menus with flowing and bouncing effects in Swift

FlowingMenu FlowingMenu provides an interactive transition manager to display menu with a flowing and bouncing effects. The Objective-C countepart is

An easy to use and setup floating view for your app. 🎡
An easy to use and setup floating view for your app. 🎡

HHFloatingView An easy to use and setup floating view for your app. 🎡 Installation Manually - Add HHFloatingView/Source folder to your Project. And y

UIMenuItem with image and closure(block) action
UIMenuItem with image and closure(block) action

MenuItemKit MenuItemKit provides image and block(closure) support for UIMenuItem. MenuItemKit is a Swift project but Objective-C is supported without

PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.

PagingKit provides customizable menu & content UI. It has more flexible layout and design than the other libraries. What's this? There are many librar

Grid and Circular Menu for iOS.
Grid and Circular Menu for iOS.

IGCMenu IGCMenu library gives easy way to create Grid and Circular menu in app. This is light weight and highly customisable menu.Support iOS 7 and ab

Hamburger Menu using Swift and iOS 8 API's
Hamburger Menu using Swift and iOS 8 API's

FrostedSidebar Hamburger Menu using Swift and iOS 8 API's Heavily influenced by @_ryannystrom's RNFrostedSidebar This implementation uses iOS 8's new

Menu controller with expandable item groups, custom position and appearance animation written with Swift. Similar to ActionSheet style of UIAlertController.
Menu controller with expandable item groups, custom position and appearance animation written with Swift. Similar to ActionSheet style of UIAlertController.

Easy to implement controller with expanding menu items. Design is very similar to iOS native ActionSheet presentation style of a UIAlertController. As

Describing a bug with Sheet and Menu
Describing a bug with Sheet and Menu

MenuTest Describing a bug with Sheet and Menu This repository is related to a question in Apples developers forum, with id: 692338 Dismiss via Button

Barber lives in your macOS menu bar and keeps track of what needs to be updated.

Barber Barber is a macOS application to keep track of application updates easily. It lives in your menu bar, and uses homebrew to determine what's out

Comments
  • Initial Contribution

    Initial Contribution

    Changes:

    • Set simple titles with titles
    • Set attributed titles with attributedTitles
    • Set more customized title with titleView
    • Ability to update Selection Indicator Color with selectionIndicatorColor
    • Ability to update Selection View's Background Color with selectionBackgroundColor
    opened by cybertk 1
  • Fix: `selectionIndicatorColor` does not work for 6+ and 6s+

    Fix: `selectionIndicatorColor` does not work for 6+ and 6s+

    This PR fixed selectionIndicatorColor property does not work on iPhone 6+ and 6s+

    Changes:

    • Use new algorithm to detect selectionIndicatorColor instead of observing didAddSubview hook
    • Enable Travis CI build matrix to test on more platforms
    • Add tests to cover this bug
    opened by cybertk 0
  • WIP: UI Tests

    WIP: UI Tests

    Failed with

    dyld: Library not loaded: @rpath/CKPickerView.framework/CKPickerView
      Referenced from: /Users/xx/Library/Developer/CoreSimulator/Devices/CF41E335-5E3C-4039-8F64-1A7DF3E18B49/data/Containers/Bundle/Application/0185B39C-2F99-4358-825A-BF6E0CEEF35B/Example.app/Example
      Reason: image not found
    
    opened by cybertk 0
Owner
Quanlong
Quanlong
Hamburger Menu Button - A hamburger menu button with full customization

Hamburger Menu Button A hamburger menu button with full customization. Inspired by VinhLe's idea on the Dribble How to use it You can config the looks

Toan Nguyen 114 Jun 12, 2022
Single selection menu with cool animations

EEJSelectMenu EEJSelectMenu is a responsive single selection menu for iOS. Project allows for implementing a menu with different number of buttons and

Ehsan Jahromi 23 Sep 24, 2022
Customizable progress indicator library in Swift

Gradient Circular Progress Customizable progress indicator library in Swift Requirements Swift 5.1 iOS 8.0 or later Screen Shots Preset style: BlueDar

keygx 523 Dec 5, 2022
An iOS drop down menu with pretty animation and easy to customize.

IGLDropDownMenu An iOS drop down menu with pretty animation. Screenshot How To Use Use CocoaPods: pod 'IGLDropDownMenu' Manual Install: Just drap the

Galvin Li 1.2k Dec 27, 2022
UIKit drop down menu, simple yet flexible and written in Swift

DropDownMenuKit DropDownMenuKit is a custom UIKit control to show a menu attached to the navigation bar or toolbar. The menu appears with a sliding an

Quentin Mathé 258 Dec 27, 2022
Simple and Elegant Drop down menu for iOS 🔥💥

SwiftyMenu is simple yet powerfull drop down menu component for iOS. It allow you to have drop down menu that doesn't appear over your views, which gi

Karim Ebrahem 502 Nov 29, 2022
A Material Design drop down for iOS

A Material Design drop down for iOS written in Swift. Demo Do pod try DropDown in your console and run the project to try a demo. To install CocoaPods

AssistoLab 2.3k Jan 1, 2023
Swipable tab and menu View and ViewController.

SwipeMenuViewController Overview SwipeMenuViewController provides SwipeMenuView and SwipeMenuViewController. This is very useful to build swipe-based

Yusuke Morishita 1.2k Dec 29, 2022
SwiftySideMenu is a lightweight and easy to use side menu controller to add left menu and center view controllers with scale animation based on Pop framework.

SwiftySideMenu SwiftySideMenu is a lightweight, fully customizable, and easy to use controller to add left menu and center view controllers with scale

Hossam Ghareeb 84 Feb 4, 2022
⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion

CIRCLE MENU Simple, elegant UI menu with a circular layout and material design animations We specialize in the designing and coding of custom UI for M

Ramotion 3.4k Dec 29, 2022