The ControlSlider is a custom UIControl for iOS written in Swift 2.0.
Features:
- vertical Slider
- @IBDesignable/@Inspectable for direct use within Interface Builder
- use together with ReactiveCocoa
License: Apache 2 License Language: Swift 2
- iOS 8.0+
- Xcode 7
The easiest way is to use CocoaPods for using ControlSlider
use_frameworks!
pod 'ControlSlider', :git => 'https://github.com/msedd/ControlSlider.git'
-
use ControlSlider together with ReactiveCocoa
override func viewDidLoad() {
super.viewDidLoad()
...
self.dimmer1.rac_valuesForKeyPath("value", observer: self).subscribeNext { (newVal:AnyObject!) -> Void in
let value = newVal as! Float
let intValue:UInt8 = UInt8(value)
self.data[0]=intValue
BluetoothController.sharedInstance.send(self.data)
}
self.dimmer2.rac_valuesForKeyPath ...
...
}
Copyright 2016 Marko Seifert ControlSlider is available under the Apache 2 License. See the LICENSE file for more info.