ibinspectable Questions

1

Solved

After updating to the latest version of the Xcode IBInspectable properties not showing up in the xib editor. You can see in the screenshots below that inspectable properties added both as extension...
Novia asked 18/9 at 13:31

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

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

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 want to create a max length to my textfield with IBInspectable, I see a answer to this on a question here but I'm getting an error saying Expression type '()' is ambiguous without more cont...
Ship asked 3/6, 2020 at 4:30

2

While attempting to modify the Apple tutorial found here on IBinspectable properties for my own project I have run into a major roadblock. I defined a simple button subclass: import UIKit @IBDes...
Hapten asked 22/7, 2017 at 18:4

2

Solved

In swift i'm writing an extension (like Obj-C category) that maintains in code class methods of "house colors." I'm wondering if there is a way to make this color extension accessible to Interface ...
Anora asked 21/7, 2015 at 22:30

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

For my iPad app that I'm creating, I have an Asset Catalog in my project containing several color sets. I know that I can drag and drop these into the code itself and have done so for the default c...
Gregorio asked 3/11, 2017 at 15:25

2

Solved

Here is my current code: override func viewDidLoad() { super.viewDidLoad() let rect = Draw(frame: CGRect( origin: CGPoint(x: 50, y: 50), size: CGSize(width: 100, height: 100))) self.view.add...
Baum asked 21/7, 2017 at 12:35

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

5

Solved

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 ...

2

Solved

I'm trying to add an IBInspectable color to UIView, so that I can set it in the storyboard and later use it in code. In this post regarding UITextField I've seen that I can take advantage of extens...
Improvisation asked 19/2, 2017 at 23:35

2

I wanted to create a keyboard selection from @IBInspectabale How to achieve this I am creating a view, In which I insert an ImageView and a TextField, Now I am creating this custom view class a...
Hatchment asked 3/5, 2017 at 10:22

4

Solved

I can not seem to get the "titleText" IBInspectable attribute working. I have a simple framework view with a UILabel which I create an IBInspectable variable "titleText". I note the inspectable "la...
Galcha asked 12/11, 2016 at 6:4

1

Solved

I am having this in MyClass.h file: #import <UIKit/UIKit.h> IB_DESIGNABLE @interface MyClass : UIView @end and this is the code from the .m file: -(void)awakeFromNib{ [super awakeFrom...
Inescutcheon asked 11/12, 2016 at 16:3

11

Solved

I have the following set of code: CustomView.h #import <UIKit/UIKit.h> IB_DESIGNABLE @interface CustomView : UIView @property (nonatomic) IBInspectable UIColor *borderColor; @property (no...
Kierstenkieselguhr asked 31/10, 2014 at 11:53

1

Solved

I am creating a custom class for UIButton to increase the tap area. I need that user can enter the padding in storyboard itself. So I make a IBInspectable property. @IBDesignable class UIIconButto...
Callas asked 22/6, 2016 at 9:35

3

Solved

In storyboard have a UIView, with a constraint for example "0.1" proportional height. Imagine you have a similar constraint "0.1", on views in many different scenes. Say you want to change the va...
Over asked 23/6, 2016 at 19:26

1

My custom button below works fine on the iOS Simulator - when I set a rotation in Interface Builder it rotates the button when I run the app. However, I can't see the rotation in the Story Board -...
Depolarize asked 5/11, 2015 at 13:10

3

Solved

I have a subclass of UIView called MyView that I am creating. In it there is a UILabel (this is added in code not in InterfaceBuilder for reasons). I then have a property on MyView called color. ...

1

Is there a way to use NSArray IBInspectable in order to define multiple values in Storyboard custom view? I know that NSArray doesn't have any information about the type of object that will be stor...
Intentional asked 17/4, 2015 at 21:39

1

In my custom UIView I have a property that I expose to the storyboard with @IBInspectable. /** My custom property documentation. */ @IBInspectable var myProperty: Double = 2.5 Is there a way ...
Skilken asked 18/6, 2015 at 23:44

5

I know default values of IBInspectable-properties can be set as: @IBInspectable var propertyName:propertyType = defaultValue in Swift. But how do I achieve a similar effect in Objective-C so that ...
Obloquy asked 20/11, 2014 at 15:59

1

Solved

I am using an IBInspectable Int in Swift to choose between 4 four shapes (0-3), however it is possible in the storyboard editor to set a value greater than 3 and less than 0, which stops the IBDesi...
Verdun asked 14/6, 2015 at 16:9

© 2022 - 2024 — McMap. All rights reserved.