This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
final class Slider: UISlider { | |
private let baseLayer = CALayer() // Step 3 | |
private let trackLayer = CAGradientLayer() // Step 7 | |
override func draw(_ rect: CGRect) { | |
super.draw(rect) | |
setup() |