{"id":15038746,"url":"https://github.com/cristinasitaa/bubbles","last_synced_at":"2025-08-13T15:43:59.596Z","repository":{"id":56904015,"uuid":"87954273","full_name":"cristinasitaa/Bubbles","owner":"cristinasitaa","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-29T12:40:19.000Z","size":653,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:53:04.075Z","etag":null,"topics":["animation","animation-library","apple-music","bubbles","ios","picker","swift","swift-3"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cristinasitaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T16:07:03.000Z","updated_at":"2023-06-25T08:11:58.000Z","dependencies_parsed_at":"2022-08-20T18:50:36.884Z","dependency_job_id":null,"html_url":"https://github.com/cristinasitaa/Bubbles","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristinasitaa%2FBubbles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristinasitaa%2FBubbles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristinasitaa%2FBubbles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristinasitaa%2FBubbles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristinasitaa","download_url":"https://codeload.github.com/cristinasitaa/Bubbles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131454,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","animation-library","apple-music","bubbles","ios","picker","swift","swift-3"],"created_at":"2024-09-24T20:40:00.546Z","updated_at":"2025-04-09T23:53:11.535Z","avatar_url":"https://github.com/cristinasitaa.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bubbles\n[![Language](https://img.shields.io/badge/Swift-3.1-orange.svg?style=flat)](https://swift.org)\n[![License](https://img.shields.io/cocoapods/l/SENoiceTable.svg?style=flat)](http://cocoapods.org/pods/Bubbles)\n[![Platform](https://img.shields.io/cocoapods/p/SENoiceTable.svg?style=flat)](http://cocoapods.org/pods/Bubbles)\n\nBubbles is a great new iOS picker written in Swift introduced with the Apple Music App.\n\n![](https://thumbs.gfycat.com/UncomfortableBelovedAbyssiniangroundhornbill-size_restricted.gif)\n\n## Installation\n\nBubbles is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"Bubbles\"\n```\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 8.0+\n- Swift 3.0+\n\n## Usage\nTo add a new Bubble picker, import Bubbles in your ViewController:\n```swift\nimport Bubbles\n```\nAdd a new view in your .XIB and set the class to ```CSBubblesView```\n\nChange ```Primary Color``` and ```Secondary Color``` from the Attributes Inspector\n\nConnect your new picker through an @IBOutlet\n```swift\n@IBOutlet weak var bubblesView: CSBubblesView!\n```\nFinally, in your ```viewDidAppear``` add the following\n```swift\nself.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\"])\n```\n\nIn order to retrive the values that were selected/deselected, use ```NSNotificationCenter```\n\nAdd in your ```viewDidLoad``` \n```swift\nNotificationCenter.default.addObserver(self, selector: #selector(ViewController.bubbleWasSelected), name: NSNotification.Name(rawValue: \"BubbleWasSelected\"), object: nil)\nNotificationCenter.default.addObserver(self, selector: #selector(ViewController.bubbleWasDeselected), name: NSNotification.Name(rawValue: \"BubbleWasDeselected\"), object: nil)\n```\nAnd implement the methods:\n```swift\n func bubbleWasSelected(notification: NSNotification) {\n     print(notification.object as! String)\n }\n    \n func bubbleWasDeselected(notification: NSNotification) {\n     print(notification.object as! String)\n }\n    \n  ```\n\n## Author\n\nCristina Sita, cristinasitaa@gmail.com\n\n## License\n\nBubbles is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristinasitaa%2Fbubbles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristinasitaa%2Fbubbles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristinasitaa%2Fbubbles/lists"}