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
2
votes
3 answers
Why does this IBDesignable class not display its changes on storyboard?
I have an IBDesignable subclass of UIButton, but my changes don't appear on the storyboard where I use it. I have tried refreshing all views on my storyboard, or re-linking the button with the class, but to no avail.
The class:
@IBDesignable class…

vrwim
- 13,020
- 13
- 63
- 118
2
votes
1 answer
Xcode - IB Designable: Failed to render and update auto layout (no suitable image found)
I am trying to implement a custom UIView from a .xib file which I want to be able to inspect in one of my storyboards. However, I receive a build time error:
IB Designables: Failed to render and update auto layout status for LoginViewController…

drante
- 129
- 9
2
votes
2 answers
extend class with IB_DESIGNABLE obj-c
I found IBDesignable and IBInspectable very usefull to bring setter possibility directly to the storyboard.
I use it in a swift projet that way
import Foundation
import UIKit
@IBDesignable extension UIView {
@IBInspectable var addBorderTop:…

Keuha
- 295
- 3
- 18
2
votes
2 answers
IBDesignable errors when rendering storyboard
I tried to follow some guides as follows 1 and 2, but when I try to render a custom view in a storyboard I get an error.
Failed to render and update auto layout status for View Controller. The agent threw an exception.
This is what I have tried…

Godfather
- 4,040
- 6
- 43
- 70
2
votes
2 answers
Custom UIButton @IBDesignable
I created a UIButton subclass that looks like a checkmark.
Here is the class:
import UIKit
@IBDesignable
class CheckedButton: UIButton {
// MARK: - Properties
@IBInspectable var checked: Bool = false {
didSet {
//…

Frederic Adda
- 5,905
- 4
- 56
- 71
2
votes
1 answer
IBDesignables - Build Failed
I'm trying to use some IB Designables I imported into a project, the designables are accessible via storyboard but don't do anything when used. I noticed a
Designables - Build Failed
under the identity inspector in the top right corner:
Is there…

SwiftyJD
- 5,257
- 7
- 41
- 92
2
votes
0 answers
IBDesignable from Storyboard not updating using cocoapods
I have developed a cocoapods named MRTextField, it contains IBDesignable and IBInspectable
The issue is when I am using pod in my another project, the IBDesignable and IBInspectable not working, also I think from storyboard it is not calling draw(_…

Muhammad Raza
- 952
- 7
- 24
2
votes
3 answers
iOS Designable Button Background color don't work
I created a custom UIButton with this code:
@implementation HGButton
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
[self initVariables];
[self customInit];
}
return self;
}
-…

Allen Walker
- 866
- 1
- 9
- 17
2
votes
1 answer
Swift 3: Designable table view cell
I'm having some trouble with visualise my custom table view cell in the interface builder.
Does anyone know how to make a @Designable table view cell?
When I import my custom table view cell in a storyboard with a tableview, only the background…

PAK
- 431
- 4
- 17
2
votes
1 answer
Seeing the draw using IBDesignable+UIView(storyboard) but can't see on app
I'm trying to draw some dashed lines on an app but it only draws on main.storyboard with IBDesignable. When I run the app on iOS simulator, nothing shows. What's happening?
The code to draw:
@IBDesignable
class AnalogView: UIView {
…

denisb411
- 581
- 1
- 7
- 25
2
votes
2 answers
How to create IBDesignable custom view?
I am still improving my programing skills in iOS(Swift). Today I am thinking about creating a UIView subclasses in a good way. I want to create custom view which is:
@IBDesignable - I want to see a render of my view in storyboard/xib;
Creatable…

Kamil Harasimowicz
- 4,684
- 5
- 32
- 58
2
votes
0 answers
Using IBDesignable and IBInspectable on an NSColor Property breaks Xcodes colour picker
I am using an IBInspectable NSColor property to set the background colour of my view but when I use the colour picker in xcode it lets me initially set the value but then when I go to change any other value on the picker it no longer takes effect.…

SacredGeometry
- 863
- 4
- 13
- 24
2
votes
1 answer
Make UINavigationItem as @IBDesignable
I would like to make custom UINavigationItem, and that changes could be made and seen in storyboard. I know how to make custom UIView with @IBDesignable and @IBInspectable, but my problem is that UINavigationItem does not have draw method and…

Marko Zadravec
- 8,298
- 10
- 55
- 97
2
votes
0 answers
IBInspectable attributes not appearing in Xcode 8 "user defined runtime attributes" area?
I'm running XCode 8.1 and can not get my IBInspectable attributes appearing in Xcode. Any known issues with XCode 8.1 (swift 3) in this area? Or any issues with what I'm trying to do here?
Steps:
Create a simple IOS app
Created the following…

Greg
- 34,042
- 79
- 253
- 454
2
votes
1 answer
Making UIImage redraw on new position on @IB_Designable
I am creating this IB_Designable class. It is like a slider. See picture. Both elements are created with little stretchable UIImages.
I have this red square that is 66x66 pt. This square has to slide in X inside the gray rectangle.
I have create…

Duck
- 34,902
- 47
- 248
- 470