/// stepValue. If set, will snap to discrete step points along the slider . Default to nil
@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()
}
}
At this line @IBInspectable open var stepValue: Double? = nil , I face error like, Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C
I am facing issue in following function:
/// stepValue. If set, will snap to discrete step points along the slider . Default to nil @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 } }
At this line @IBInspectable open var stepValue: Double? = nil , I face error like, Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C