A customizable subclass of UIControl which allows you to create a Jog Wheel, Turntable or Knob.
Updating the Wheel's Tint Color based on its value.
Custom Wheel image, Custom Overlay Image and an Angular Resistance set to 0.0.
Drag and drop an UIView
object into your view controller and set its class and module to KoiWheel
.
Properties | Description | Default value |
---|---|---|
Value | The Value of the Wheel. The number of revolutions from initial position. | 0.0 |
Minimum Value | The Smallest Value of the Wheel. | 0.0 |
Maximum Value | The Largest Value of the Wheel. | 100.0 |
Angular Resistance | The greater the value the faster rotation slows to a stop. | 1.0 |
Marker Color | The color of the Orientation Marker. The marker is only visible if Knob Image is nil . |
white |
Knob Image | An image for custom designing the wheel. Setting this to a non-nil value hides default Orientation Marker. | nil |
Knob Overlay Image | A non-rotating decoration image for custom designing the wheel (eg. the glare on a record). | nil |
Overlay Alpha | The alpha of the overlay image. | 1.0 |
To run the example project, clone the repo, and run pod install
from the Example directory first.
KoiWheel is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KoiWheel'
Kwab Fordjour
KoiWheel is available under the MIT license. See the LICENSE file for more info.