Demo for @IBDesignable and @IBInspectable rendering and customizable using Storyboard.
UIView/UIButton is a @IBDesignable Class rendered in your storyboard, and all its properties are @IBInspectable so that you can customize your VIEW/BUTTON inside the storyboard in the Attributes inspector.
These following properties can be used to customized using VBDesignableView and VBDesignableButton as parent class.
✪ Corner Radius
✪ Border Width
✪ Border Color
✪ Shadow Radius
✪ Shadow Opacity
✪ Shadow Otfset
✪ Shadow Color
Just drag VBUIDesign class into your project In your storyboard, select a UIView Go the the identity inspector and in the class field, type VBDesignableView instead of UIView Play with the attributes inspector with real-times results! Change colors for the shadow add corner radius of your view
Hope it helps.😊
iOS 8.0+, MacOS 10.10+, ARC
- Swift 4.1: Xcode 9.3; version >= 3.2.3
- Swift 4.0: Xcode 9.0; version >= 3.0.5
- Swift 3.0-3.2: Xcode 8.0-9.0; version >= 0.9.5
- Swift 2.3: Xcode 7.0; version < 0.9.5
Please raise a GitHub issue.
Please help library development and create pull requests
You can feel free to ask the question at e-mail: [email protected].