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
3
votes
3 answers
@IBDesignable UIView not calling init within storyboard
I have a UIView that is is @IBDesignable
@IBDesignable
class MyView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
sharedInit()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder:…

ajrlewis
- 2,968
- 3
- 33
- 67
3
votes
3 answers
Designables: Failed to render and update auto layout status. I am using Xcode 9.3
I am working with Xcode 9 and using Cocoa framework throws this error.
I have tried all possible ways but not able to resolved it.

Hemant Solanki
- 894
- 10
- 24
3
votes
0 answers
How to prevent storyboard from running every target in my application?
I have an Xcode project which has several targets, among which a shared target which has a dependency dedicated to increasing the build number when archiving.
Whenever I edit my Storyboards, the build number increases, which means the archiving…

Kheldar
- 5,361
- 3
- 34
- 63
3
votes
0 answers
Update constraints for IBDesignable
I have a @IBDesignable UIView (ContainerView) that has one subView (also @IBDesignable). I would very much like to be able to update the constraints of the subView in the code in a way were they are automatically updated in InterfaceBuilder.…

Nikolaj Simonsen
- 1,650
- 3
- 18
- 34
3
votes
1 answer
How does the interface builder decide when a separator will be introduced when using IBInspectable
Right now I'm creating a custom view and I'm wondering how the interface builder decides when a line is introduced.
as you can see it divides it into 3 sub groups However I'm wondering how it is decided where a subgroup starts and ends.
Because…

NoSixties
- 2,443
- 2
- 28
- 65
3
votes
1 answer
IBDesignable rendering NSLayoutConstraint subclass
I have develop a DeviceLayout Library enter link description here
this library provide DeviceLayoutConstraint to set AutoLayout constant per device size
import UIKit
import Device
class DeviceLayoutConstraint: NSLayoutConstraint {
…

Cruz
- 2,602
- 19
- 29
3
votes
1 answer
IBDesignable view not rendering
I have a simple @IBDesignable view that I have specified as the base class for the top level view in a scene in my macOS storyboard. For example:
@IBDesignable
class OvalView: NSView {
override func draw(_ dirtyRect: NSRect) {
…

Rob
- 415,655
- 72
- 787
- 1,044
3
votes
1 answer
Swift @IBDesignable - @IBInspectable multiple variables
I am trying to create a custom class for UILabel so I can see the result from the Storyboard. I need to change the text attributes in order to create an outline label.
With the code I have so far I can manage to do this however I can only add one…

SNos
- 3,430
- 5
- 42
- 92
3
votes
2 answers
IBDesignable - Arrange subviews added through interface builder
I am currently messing around with IBDesignable Views, and I am curious if anyone has been able to solve this. I would like to have views added through the interface builder be automatically arranged using a custom layout algorithm within my…

aeskreis
- 1,923
- 2
- 17
- 24
3
votes
0 answers
Can IBDesignable and IBInspectable run on iOS7 phone?
I'm using Xcode7.1, and used @IBDesignable and @IBInspectable to custom a view. When I set the Deployment Target to iOS7.0, the property I set with IBInspectable didn't work. Does it work on iPhone with iOS7.0?

ZeroChow
- 422
- 2
- 5
- 16
3
votes
1 answer
Disable cut, copy, paste on UITextField using IBInspectable
Please find the following code which did not work for me.
@IBInspectable var pasteOption: Bool = true {
didSet {
func canPerformAction(action: Selector, withSender sender: AnyObject) -> Bool {
if action ==…

Janak Thakkar
- 414
- 5
- 20
3
votes
1 answer
Swift Protocol compilation error when using TARGET_INTERFACE_BUILDER
I am trying to generate sample data for an @IBDesignable control, so when building for IB I'm fooling the control into being its own datasource. The upshot is I'm adding some methods to a protocol only for use by IB, and as a good citizen I wish to…

Echelon
- 7,306
- 1
- 36
- 34
3
votes
0 answers
can't map unslidable segment auto layout
I have a problem:
error: IB Designables: Failed to update auto layout status: dlopen(My.app, 1): no suitable image found. Did find:
My.app: can't map unslidable segment __TEXT to 0x100000000 with size 0x1050000
I have ImageButton control(for…

user3714400
- 31
- 3
3
votes
1 answer
Reuse identifier in nib does not match the identifier used to register the nib
I have a Framework/Module written in Swift which provides some custom controls with IBDesignable functionality.
Currently I am working on a control based on a CollectionView. The CollectionView and the custom CollectionViewCell are build in Nib…

Paul Schröder
- 1,440
- 1
- 10
- 19
3
votes
2 answers
IBInspectable UIView property
Can I make my UIView @property inspectable?
@interface Superview : UIView
@property (nonatomic, weak, readonly) IBInspectable UIButton *stopButton;
@property (nonatomic, weak, readonly) IBInspectable PKCircleProgressView…

BergP
- 3,453
- 4
- 33
- 58