Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Aku-n06/ASBubbleDrag
round icon drag control (made in swift) dock style
https://github.com/Aku-n06/ASBubbleDrag
Last synced: 4 months ago
JSON representation
round icon drag control (made in swift) dock style
- Host: GitHub
- URL: https://github.com/Aku-n06/ASBubbleDrag
- Owner: Aku-n06
- License: mit
- Created: 2016-02-14T16:43:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T07:35:37.000Z (over 8 years ago)
- Last Synced: 2024-09-01T01:01:38.017Z (6 months ago)
- Language: Swift
- Size: 5.69 MB
- Stars: 47
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASBubbleDrag
Bubble drag control integrate in storyboard :

## Installation
#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `ASBubbleDrag` by adding it to your `Podfile`:```ruby
platform :ios, '8.0'
use_frameworks!
pod 'ASBubbleDrag', :git => 'https://github.com/scamps88/ASBubbleDrag.git'
```To get the full benefits import `ASBubbleDrag` wherever you import UIKit
``` swift
import UIKit
import ASBubbleDrag
```#### Manually
1. Download and drop ```/ASBubbleDrag```folder in your project.
2. Congratulations!### implementation :
- to implement ASBubbleMenu, first create a UIView and add it to your UIViewController in storyboard; then set the class as ASBubbleDrag :

- then attach it to an iboutlet```swift
@IBOutlet var bubbleDragView : ASBubbleDrag!
```
- and populate it with an array of UIImage```swift
self.bubbleDragView.populate(icons)
```- the ASBubbleDragDelegate protocol will return the index selected :
```swift
self.bubbleDragView.delegate = selffunc ASBubbleDragSelectedMenuItemAtIndex(index: NSInteger) {
}
```### licence :
ASBubbleDrag is available under the MIT license. See the LICENSE file for more info.