             let widthAttribute: NSLayoutAttribute = orientation == .vertical ? .width : .height
             trackView.removeFirstConstraintWhere { $0.firstAttribute == widthAttribute }
             trackView.constrain(widthAttribute, to: trackWidth)
-        }
-    }
+            updateTrackViewCornerRounding()
+        }
+    }
+    @IBInspectable @objc public var hasRoundTrackEnds: Bool = false {
+        didSet {
+            updateTrackViewCornerRounding()
+        }
+    }
+
     open var valueLabelFormatter: NumberFormatter = {
         let formatter = NumberFormatter()
         formatter.maximumFractionDigits = 2

        }
    }

    // MARK: - Overrides

    override open func tintColorDidChange() {


    private func setup() {
        trackView.backgroundColor = actualTintColor
        updateTrackViewCornerRounding()
        slideView.layoutMargins = .zero
        setupOrientation()

