Latest 1.0.0
Homepage https://github.com/shutdownr/circlepicker
License MIT
Platforms ios 9.0

by Tim Kreuzer

CirclePicker
CirclePicker is a custom UIView. It allows multiple choice selection of different elements which can be customised by the programmer. Furthermore you can configure CirclePicker for your own needs with multiple parameters.

Requirements

  • iOS 9.0+
  • Xcode 9.0+

Installation

Download and copy the files from “Code” to your Xcode-project and you’re good to go.

You can also install CirclePicker using CocoaPods.
Add the following line in your Podfile:
pod 'CirclePicker'

Usage

Create a new Object of the type CirclePicker. You need to set the dataSource attribute (CirclePickerDataSource-protocol) to fill it with data. Then you can use the method attachToView(_ :) to attach the picker to a certain view. The picker itself will be displayed now. In order to respond to user interaction, you need to set the delegate attribute (CirclePickerDelegate-protocol) which will be called on every interaction.
Your code should look something like this:

Latest podspec

{
    "name": "CirclePicker",
    "version": "1.0.0",
    "summary": "A custom UIView for multiple choice selection",
    "description": "CirclePicker is a custom UIVIew. It allows multiple choice selection of different elements which can be customised by the programmer. Furthermore you can configure CirclePicker for your own needs with multiple parameters.",
    "homepage": "https://github.com/shutdownr/circlepicker",
    "license": "MIT",
    "authors": "Tim Kreuzer",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/shutdownr/circlepicker.git",
        "tag": "1.0.0"
    },
    "swift_version": "4.0",
    "source_files": "Code/*"
}

Pin It on Pinterest

Share This