Swift snippet #3 β @IBInspectable
Published in
1 min readNov 30, 2016
Wednesday, 30th November, 2016
If we assign@IBInspectable
above a property then it becomes available in the storyboard/nibβs right panel where we can assign it some value..
This is super handy as we can keep all the UI related configurations here in the IB π Though right now your new type can only have few limited properties like CGFloat
, Bool
, Int
etc.
If you are wondering about the inception of Swift-Snippets or want to checkout more such snippets then you can find them here π