IBDesignable is a designation given to views in Xcode 6 that allows them to be rendered directly in Interface Builder without the need to build and run the application.
Questions tagged [ibdesignable]
279 questions
0
votes
1 answer
How to make controls occupy the real size inside a stack
I have an horizontal stack with three controls.
The first two (green and orange on the figure below) are based on IB_DESIGNABLE UIView classes. There are no width constrains inside these classes relatively to the width these controls have to be. The…

Duck
- 34,902
- 47
- 248
- 470
0
votes
1 answer
How can I make a custom subclass of uitextfield and over there using @IBDesignable & @IBInspectable I can set placholder padding from left
I want to make a subclass of UITextField and over there by using @IBDesignable and @IBInspectable set the left side as well as right side padding for the text as well as placeholder. Can ignore left and right view.

SAM
- 54
- 9
0
votes
0 answers
iOS Assets not loading from framework to main app
I have a custom subclass of UIButton in a framework, MyUI.framework. In my app's storyboard I have a UIButton with the MyUIButton subclass set in the properties inspector.
This subclass is also an IBDesignable, when the view designable updates, I…

Adam Carter
- 4,741
- 5
- 42
- 103
0
votes
2 answers
Using @IBDesignable for a gradient view
I am using the below to create a gradient view that is visible in IB:
import UIKit
import QuartzCore
@IBDesignable
class FAUGradientView: UIView {
@IBInspectable var firstColor:UIColor = UIColor.clear
@IBInspectable var…

steventnorris
- 5,656
- 23
- 93
- 174
0
votes
0 answers
IBDesignable element misplaced in interface builder, needs to update frames manually
I'm working on a Radio Button View, and already uploaded a test project on github at https://github.com/paulicelli/RadioButton
This is basically a subclass of a UIStackView, with a IBInspectable number of buttons to create some radio…

sabi
- 423
- 2
- 8
0
votes
0 answers
Failed to update auto layout status:failed to load designable from path (null)?
When i am trying to set class i am getting IB Designables error.
I tried
Clearing derived data
pod update
Clean the Project
Quit and open project again
Build Project
But nothing is working.
I like to know this problem is arise due to pod or by…

Kishore Kumar
- 4,265
- 3
- 26
- 47
0
votes
2 answers
UITextView IBDesignable Padding
How do I create an IBDesignable UITextView such that I can adjust the insets of the text in interface builder? I've added inspectable properties topInset, bottomInset, etc. but now I'm having trouble figure out how to actually update the insets of…

Apollo
- 8,874
- 32
- 104
- 192
0
votes
1 answer
Swift multiple inheritance solution for IBInspectable/IBDesignable?
I've been playing with the IBInspectable/IBDesignable like in this article: http://nshipster.com/ibinspectable-ibdesignable/.
It shows how you can make an extension to add extra editing options in storyboard. The problem however is that you can't…

Janneman
- 1,093
- 15
- 23
0
votes
1 answer
IBInpectable properties for different states when customizing UIButton
I have customised UI button and create some properties with IBInspectable. However, I also need the same property for selected or highlighted state and can be inspected in Interface Builder. I want to know if it can be achieved?
Here is the…

Patrick
- 11
- 1
0
votes
2 answers
IBDesignable not working when added to UIStackView
I have this fairly simple IBDesignable RoundedLabel. It renders fine in Interface Builder and when run in simulator. If I add the view into a UIStackView, even though it renders fine in IB, corner radius is only applied to top left corner.
import…

MjZac
- 3,476
- 1
- 17
- 28
0
votes
0 answers
TextView Border Color and Border Radius Not Set
I want to set corner Radius of UITextView By Interface . But I am unable to do this . This code Work Fine for UILabel, UIButton but give error in UITextView
Intializer does not override a designated intializer from superclass.
class MyText:…

Rishab
- 31
- 5
0
votes
1 answer
Running iOS code without simulator
I have noticed that Xcode is capable of running UIKit code for IBDesignables, without launching the simulator at all. It seems to be using IBDesignablesAgentCocoaTouch tool which is a macOS app. How something like that can be implemented?

szotp
- 2,472
- 1
- 18
- 21
0
votes
1 answer
Why properties tagged @IBInspectable is not working?
I followed the tutorial here to create an inspectable and designable view. I just want to add border color, border width, and rounded border capability into the UIView.
I have been successful to show the properties. But doesn't matter what I set on…

Chen Li Yong
- 5,459
- 8
- 58
- 124
0
votes
1 answer
Clean interface builder compilation
I want to use IBDesignable and IBInspectable to display some custom views. Everything worked fine until it I made some errors. I fixed them but the Interface builder still renders an old state of the view. My guess is that it is using some old…

Jelly
- 4,522
- 6
- 26
- 42
0
votes
2 answers
How to set padding for UILabel using @IBDesignable property?
This is how looks my subclass for UILabel:
@IBDesignable class AttributedLabel: UILabel {
@IBInspectable var padding: CGFloat = 0
override func drawTextInRect(rect: CGRect) {
super.drawTextInRect(UIEdgeInsetsInsetRect(rect,…

Bartłomiej Semańczyk
- 59,234
- 49
- 233
- 358