thehung111 / NHRangeSlider

A custom range slider in Swift
https://thehung111.github.io/NHRangeSlider/
MIT License
156 stars 45 forks source link

Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C #26

Open FaizUlHassan123 opened 5 years ago

FaizUlHassan123 commented 5 years ago
    @IBInspectable open var stepValue: Double? = nil {
    willSet(newValue) {
        if newValue != nil {
            assert(newValue! > 0, "NHRangeSlider: stepValue must be positive")
        }
    }
    didSet {
        if let val = stepValue {
            if val <= 0 {
                stepValue = nil
            }
        }

        updateLayerFrames()
    }
}

 @IBInspectable open var stepValue: Double? = nil {
            didSet {
        self.rangeSlider?.stepValue = stepValue
    }
}