Latest 0.1.0
Homepage https://github.com/Ronnel/BubblePicker
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

A similar library for Android made by Irina Galata can be found here

![Bubble Picker GIF]
(http://i.giphy.com/lyVR0Y9GrgKti.gif)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

BubblePicker requires a deployment target of atleast iOS 9.0 for UIKitDynamics

Usage

Setup the BubblePicker view

bubblePicker = BubblePicker()       // Or use a storyboard
let arr = ["TV Shows", "Sports", "Technology", "Science", "People", "Places", "Music", "Photography"]
bubblePicker.setup(items: arr)

Set theme to be either .light or .dark

bubblePicker.theme = .light
bubblePicker.theme = .dark

Set bubbles to be selected

bubblePicker.setSelectedBubble(3, true)
bubblePicker.setSelectedBubble(1, true) 
bubblePicker.setSelectedBubble(4, true)

Or to set them all in one go

bubblePicker.setSelectedBubbles([3, 1, 4], true);

Callbacks for when a user selects or deselects a bubble

bubblePicker.onBubbleSelected({
    index in
    print(index)
})

bubblePicker.onBubbleDeselected({
    index in
    print(index)
})

To get indexes of all selected bubbles

let selectedIndices: [Int] = bubblePicker.getSelectedBubbles()

Installation

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

pod "BubblePicker"

Author

Ronnel Davis: [email protected]

License

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

Copyright (c) 2017 Ronnel Davis

Latest podspec

{
    "name": "BubblePicker",
    "version": "0.1.0",
    "summary": "An easy-to-use picker view built on UIKitDynamics which can be used for content picking for iOS",
    "description": "An easy-to-use picker view built on UIKitDynamics which can be used for content picking for iOS.",
    "homepage": "https://github.com/Ronnel/BubblePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ronnel Davis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ronnel/BubblePicker.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "BubblePicker/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This