According to Apple docs, we can add these types to IBInspectable
attribute.
Render and inspect your custom views
You can add the IBInspectable attribute to any property in a class declaration, class extension, or category of type: boolean, integer or floating point number, string, localised string, rectangle, point, size, colour, range, and nil.
I'm able to add all types except range. can somebody explain how to add range to IBInspectable
attribute?