ibdesignable Questions

5

I'm suddenly having a strange and reproducible error when using an @IBDesignable class, @IBInspectable properties are giving the following warning: Main.storyboard: warning: IB Designables: Ign...
Kennet asked 15/10, 2015 at 17:10

17

Solved

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...
Vonnievonny asked 8/2, 2015 at 6:4

2

I use UIColor.named("myColor") throughout my app since Xcode 9 came out. While having a shot at a custom implementation of UITextField as an IBDesignable class, I kept getting the following error: ...
Pope asked 1/11, 2017 at 8:36

3

Solved

I'm curious why doesn't this set the backgroundColor to red? @IBDesignable class CustomLabel: UIView { let view = UIView() func setup() { backgroundColor = UIColor.red view.backgroundColor =...
Perfectly asked 6/9, 2016 at 10:53

6

Solved

I can view the changes made using IBInspectable on my simulator but not in my storyboard I tried reinstalling my Xcode but it didn't fix this issue. Here are some screenshots : So i know my c...
Backstroke asked 28/2, 2018 at 6:4

8

Solved

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 im...
Marlee asked 22/12, 2017 at 6:44

1

Solved

I see a number of questions about this, but few answers (one answer solved a previous similar issue, but not this one). THE PROBLEM I have an IBDesignable class. It derives from UIControl, but the ...
Erb asked 21/3, 2021 at 19:34

1

Solved

I have developed this shared package. It works fine. In the package test harnesses (3 iOS apps), it works great, and also, the IB storyboard renders the control (It's an IBDesignable). However, whe...

14

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: ...
Congius asked 13/10, 2017 at 6:22

15

Solved

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...
Infanta asked 7/11, 2014 at 10:24

4

Solved

In swift 3 I could do something like this to make my UIView corners round: import UIKit @IBDesignable class DesignableView: UIView { } extension UIView { @IBInspectable var cornerRadius: CGFl...
Brouhaha asked 12/10, 2017 at 15:35

1

Xcode 7.0.1 (7A1001) iOS 9.0 I made a custom @IBDesignable UIView, only implementing the drawRect function. Like so: @IBDesignable class CustomView: UIView { override func drawRect(rect: CGRec...
Perichondrium asked 9/10, 2015 at 18:33

1

Solved

TL:DR Paste this into Swift playground: import UIKit public protocol NibLoadable { static var nibName: String { get } } extension NibLoadable where Self: UIView { public static var nibName: St...
Export asked 1/4, 2019 at 23:33

3

Solved

For example, I want to subclass UIButton and set it's font to 20.0f by default. I can write something like this: @IBDesignable class HCButton: UIButton { required init?(coder aDecoder: NSCoder) ...
Rubstone asked 13/8, 2015 at 12:39

2

Solved

When referencing a colour that has been created using UIColor(named:) Interface Builder crashes due to it finishing nil for the colour. Initially I thought this would be as IB was looking for the ...
Dextro asked 10/9, 2018 at 13:27

3

Solved

I recently made some changes to Assets.xcassets and this caused absolute chaos for XCode. I ended up with multiple errors of this kind: Failed to render and update auto layout status for *MyViewCon...
Astrionics asked 9/4, 2018 at 17:46

2

I have managed to get the IBDesignable/IBInspectable attributes working with direct subclasses of NSView but not with a direct subclass of NSButton. This is causing me to question if in fact the Co...
Wharfinger asked 12/12, 2014 at 22:17

1

I created lots of IBInspectable. But today, I observed that Xcode having some properties like this: In the link, I marked rectangle box. I want to create custom IBInspectable like that. I don't ...
Hindi asked 16/3, 2018 at 14:49

1

Recenlty I've made reusable class for rendering IBDesignables xibs in interface view. @interface ReusableView () @property (nonatomic, strong) UIView *contentView; @end @implementation ReusableVi...
Columnar asked 25/7, 2016 at 8:56

1

Is it possible to configure how @IBInspectable properties are displayed and/or controlled in the Attribute Inspector? For example, I have a CGFloat property "Overlay Alpha" which shows up in the in...
Wagtail asked 29/12, 2014 at 16:56

4

Solved

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 ...
Hortenciahortensa asked 29/4, 2015 at 3:15

6

Solved

What I did: Deleted derived data, Restarted xcode, Editor->Refresh all views I am getting Designables build failed in storyboard when I click on Editor->Refresh all views. Please check the fol...
Undecided asked 17/5, 2017 at 11:42

3

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.in...
Chaoan asked 3/2, 2016 at 20:35

2

In layoutSubviews I'm calling setImage() and pass it a UIImage but it never shows up in Interface Builder, but it always shows up when I run the program.
Sheldonshelduck asked 27/10, 2014 at 19:22

2

I'm trying to use the IB Designable and IB Inspectable in my UIButton but seems there are some errors. In the Issue Navigator, the bundle file: Storyboard : IB Designables : Failed to update a...
Brutify asked 28/11, 2014 at 11:2

© 2022 - 2024 — McMap. All rights reserved.