     // MARK: - Accessing the Stepper’s Value
 
     /// The stepper value. Default = 0.
-    public var value: Double = 0 {
+    public var value = 0.0 {
         didSet {
             guard value != oldValue else { return }
 

    // MARK: - Configuring the Stepper

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

        self.decrementButton = decrementButton
        self.incrementButton = incrementButton

        super.init(frame: .zero)

        self.decrementButton.addTarget(self, action: #selector(decrementValue), for: .touchUpInside)
        self.incrementButton.addTarget(self, action: #selector(incrementValue), for: .touchUpInside)
