Questions tagged [ibdesignable]

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.

279 questions
96
votes
11 answers

IB_DESIGNABLE, IBInspectable -- Interface builder does not update

I have the following set of code: CustomView.h #import IB_DESIGNABLE @interface CustomView : UIView @property (nonatomic) IBInspectable UIColor *borderColor; @property (nonatomic) IBInspectable CGFloat borderWidth; @property…
nhgrif
  • 61,578
  • 25
  • 134
  • 173
73
votes
17 answers

Interface Builder - Failed to load designables from path (null)

I have some custom controls I have created and I'm them using in a new project. However, I keep getting errors in interface builder: Failed to update auto layout status: Failed to load designables from path (null) or Failed to render instance of…
Jake
  • 13,097
  • 9
  • 44
  • 73
65
votes
15 answers

Failed to render instance of IB Designables

I have an Objective-C and Swift mixed dynamic framework. And the mixed framework was linked with two pure Objective-C dynamic frameworks. When I tried to mark any class in the mixed framework with IB Designable and using that class in either…
WeZZard
  • 3,536
  • 1
  • 23
  • 26
36
votes
3 answers

IBInspectable Creating a Dropdown and better Organization

In short, I would like to create an @IBInspectable property that allows you to select from a list of things in a drop down menu when you are in Storyboards. Also if there is a way to create dividers and better organize the IBInspectables I would…
Jordan Hochstetler
  • 1,308
  • 3
  • 17
  • 28
35
votes
14 answers

IB Designables: Failed to render and update auto layout status

I have a custom view (xib) that has a UIButton inside of it, I made id IBDesignable doing the following: UserView.swift import UIKit @IBDesignable class UserView: UIView { @IBOutlet var view: UIView! @IBOutlet weak var userButton:…
Jonathan Solorzano
  • 6,812
  • 20
  • 70
  • 131
27
votes
8 answers

IBDesignable Build Failed

I have Created IBDesignable and IBInspectable custom class to give shadow and corner radius for view But When I assign Designable class to view, I get Designable Build Failed This is my code import Foundation import UIKit @IBDesignable class…
VishalPethani
  • 854
  • 1
  • 9
  • 17
26
votes
4 answers

Instantiate view from nib throws error

I tried to make @IBDesignable UIView subclass following this (link) tutorial. First custom view goes fine. But when I try to make another one, I have errors. First I got failed to update auto layout status: the agent crashed and Failed to render…
Lachtan
  • 4,803
  • 6
  • 28
  • 34
25
votes
3 answers

Could not load IBDesignable xib in the Interface Builder

I have a xib (childXib) file linked to its custom UIView swift file through its Owner. This is how I initialize my custom UIView: // init for IBDesignable override init(frame: CGRect) { super.init(frame: frame) let view = loadViewFromNib() …
Nico
  • 6,269
  • 9
  • 45
  • 85
25
votes
5 answers

IBDesignable View Rendering times out

I've been working on an app on and off for a few months starting with the first XCode 6/iOS 8 beta release. One of my favorite features added is live rendering, made possible with the @IBDesignable tag in Swift. I haven't been able to get a single…
jchitel
  • 2,999
  • 4
  • 36
  • 49
22
votes
6 answers

IBDesignable Errors When Adding to Tests Target

I have a simple UIButton subclass that implements IBDesignable with an IBInspectable var: @IBDesignable class Button: UIButton { @IBInspectable var borderColor: UIColor = UIColor.whiteColor() { didSet { layer.borderColor =…
Adolfo
  • 4,969
  • 4
  • 26
  • 28
21
votes
3 answers

Live Rendering a custom component using IB_DESIGNABLE from a pod dependency

I'm having some difficulty using IB_DESIGNABLE in a pod. I created a custom view which I marked as IB_DESIGNABLE and made a sample project that uses it. No problems so far. The issue happens when adding that custom view as a pod dependency. Although…
Edgar
  • 2,500
  • 19
  • 31
20
votes
5 answers

Can you add IBDesignable properties to UIView using categories/extensions?

For those that don't know what I'm talking about, Xcode 6.0 added new features, IBDesignable and IBInspectable. When you tag your custom views with IBInspectable properties, those properties show up in the Attributes Inspector in IB. Likewise, when…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
19
votes
2 answers

Failed to render instance of ClassName: The agent threw an exception loading nib in bundle

When I include my custom IBDesignable view in a storyboard or another nib, the agent crashes and throws an exception because it can't load the nib. error: IB Designables: Failed to update auto layout status: The agent raised a…
Josh Heald
  • 3,907
  • 28
  • 37
17
votes
1 answer

Checking if code is running in Interface Builder

I have custom IBDesignable classes in swift that do some things that cause crashes in Interface Builder. Is there a flag I can check to see if I'm running in interface builder or not? Ideally it would be a precompiler directive (#ifdef…
17
votes
4 answers

IBDesignable from External Framework?

I'd like to create some custom views that use the @IBDesignable and @IBInspectable tags. I have added these to my Framework and then linked my Framework to my test application. But the Designables never show up in the StoryBoard. How can I use…
Sakiboy
  • 7,252
  • 7
  • 52
  • 69
1
2 3
18 19