When you add @IBInspectable properties, they are initialized essentially ... nothing.

Is there a way for these default properties to be something? Tell me red for track color, gray for background color and 10.0 for fill? I tried @IBInspectable public var padding: CGFloat = 10.0, but "10" is not reflected in IB.
source
share