Swift snippet #3 β€” @IBInspectable

Ritesh Gupta
Swift Snippets πŸš€
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 😊

--

--