Circular View Slider with swift
CircularViewSlider
Circular View Slider with swift.
Requirements
- iOS 10.0+
- Xcode 11
Installation
Manually
- Download and drop
RRCircularView.swift
in your project. - Congratulations!
Usage example
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var circularView: RRCircularView!
@IBOutlet weak var slider: UISlider!
override func viewDidLoad() {
super.viewDidLoad()
circularView.arrowImageView.image = #imageLiteral(resourceName: "gren_round_arrow")
circularView.globImageView.image = #imageLiteral(resourceName: "gren_round")
circularView.ringImageView.image = #imageLiteral(resourceName: "round_color")
circularView.dotImageView.image = #imageLiteral(resourceName: "black_dot")
circularView.tintColorImage = #imageLiteral(resourceName: "gradient")
slider.minimumValue = Float(circularView.minimumValue)
slider.maximumValue = Float(circularView.maximumValue)
slider.value = Float(circularView.minimumValue)
sliderValueChanged(sender: slider)
}
@IBAction func sliderValueChanged(sender: UISlider) {
circularView.value = slider.value
}
}
Contribute
We would love you for the contribution to RRCircularViewSlider, check the LICENSE
file for more info.