Tuesday, 5 February 2019

One Minutes Tutorial of IBDesignable IBInspectable

@IBInspectable can be applied to variable/properties of a custom view and will allow you to check and update the value in Attributes Inspector





However it will not update when you change the value until you add @IBDesignable to the CustomView class. Quit Xcode completely and reopen it, if it is not rendered in real time.


Check example code at github:
https://github.com/Sylvia-YiyinShen/IBDesignableInspectableCustomView

No comments:

Post a Comment