         self.decrementButton = decrementButton
         self.incrementButton = incrementButton
 
-        super.init(frame: CGRect.zero)
+        super.init(frame: .zero)
 
         self.decrementButton.addTarget(self, action: #selector(decrementValue), for: .touchUpInside)
         self.incrementButton.addTarget(self, action: #selector(incrementValue), for: .touchUpInside)

    // MARK: - Configuring the Stepper

    /// If true, long pressing repeatedly alters `value`. Default = true.
    public var autoRepeat: Bool = true {
        didSet {
            if autoRepeatInterval <= 0 {
                autoRepeat = false

    // MARK: - Accessing the Stepper’s Value

    /// The stepper value. Default = 0.
    public var value = 0.0 {
        didSet {
            guard value != oldValue else { return }

