Bubbles 0.1.6

Bubbles 0.1.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Cristina Sita.



Bubbles 0.1.6

  • By
  • Cristina Sita

Bubbles

Bubbles is a great new iOS picker introduced with the new Apple Music App written in Swift.

Installation

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

pod "Bubbles"

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Usage

To add a new Bubble picker, import Bubbles in your ViewController:

import Bubbles

Add a new view in your .XIB and set the class to CSBubblesView

Change Primary Color and Secondary Color from the Attributes Inspector

Connect your new picker to an @IBOutlet

@IBOutlet weak var bubblesView: CSBubblesView!

Finnally, in you viewDidAppear add the following

self.bubblesView.dataArray = NSMutableArray(array: ["Argentina", "Aruba", "Australia", "Austria", "Bahamas", "Barbados",  "Belgium", "Belize",  "Bermuda",  "Brazil",  "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Dominican Republic", "Egypt", "Faroe Islands", "Fiji",  "France", "Germany", "Greece"])

Author

Cristina Sita, [email protected]

License

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