Using IBInspectable and IBDesignable

Mr.Javed Multani
2 min readOct 3, 2020

One (or two) of the coolest new features in recent Xcode releases are the IBInspectable properties and IBDesignable UIViews.These have nothing to do with the functionality of your application but instead impact the developer experience in Xcode. The goal is to be able to visually inspect custom views in your iOS application without running it. So assume that you have a custom view creatively named CustomView that inherits from UIView. In this custom view, it will display a string of text with a designated color. You can also choose not to display any text. We’ll need three properties:

--

--

Mr.Javed Multani

Software Engineer | Certified ScrumMaster® (CSM) | UX Researcher | Youtuber | Tech Writer