Yet another knob for iOS but with IBDesignable and Ableton Live style.
Horizontal, vertical (or both) and rotary control options.
- iOS 9.0+
- Swift 4.0+
pod 'LiveKnob'
- Drop a UIView from storyboard and change its class to
LiveKnob
. - Tweak style settings.
- Bind an
IBAction
function toLiveKnob
svalueChanged
event. - Or you can do it programmatically.
You can change the line width and color of the base ring, progress ring and pointer. Also you can tweak the start and end angles of the base knob ring.
You can set the controlType
for changing the knob's touch control behaviour. It supports horizontal and/or vertical slidings as well as rotary slidings.
You can create custom marker views in with LiveKnobMarker
type and set them to LiveKnob's markers
array in order to draw markers around the knob. You can set individual offset and transform for each marker as well.
You can use it with SwiftUI
https://gist.github.com/cemolcay/caed8e701de775de63ab4ae34b70b256
This control used in my apps
- ArpBud
- Euclid Goes to Party (iOS, AUv3, M1)
- SnakeBud (iOS, AUv3, M1)
- MelodyBud (iOS, AUv3, M1)