277 questions
0 votes
1 answer
79 views
How to make an IBDesignable image down sampling function in Swift?
I faced and issue with images using too much memory when running the app. A 905kb SVG image was taking around 150mb when presented and this image was being cached by the system. Loading several ...
4 votes
0 answers
1k views
M1 mac - Xcode 14.3 - Failed to render and update auto layout status
Upgraded to Xcode 14.3 and now all my storyboards won't render IBDesignable's throwing an error: /Users/****/Documents/Projects/****/****/Modules/Onboarding/Base.lproj/Onboarding.storyboard Failed to ...
1 vote
0 answers
99 views
cocoapods issue with IBDesingables
it's first time for me to develop my own pod and i create a pod with an example to implement the pod, the pod is working great but i wanted that user to be able to init with coding or using Storyboard ...
0 votes
1 answer
1k views
Failed to render and update auto layout
I am using Xcode 13.4.1 in Rosseta mode on Macbook Pro (M1 chip) running macOS Monterey v12.0. Basically, IBDesignable views are not getting updated in XIB and throwing weird errors. All the details ...
0 votes
0 answers
326 views
How to use color sets in designable views in storyboards?
The situation and steps to reliably reproduce: Set up a macOS app project with Swift and storyboards for UI in Xcode. Define an arbitrary color for the "AccentColor" color set in the asset ...
0 votes
1 answer
427 views
AppClip - this class is not key value coding-compliant for the key labelColor
I have an existing App in the AppStore and I am building a POC AppClip for it. I have created the AppClip (using storyboards) and I am trying to reuse classes from the main App in Xcode. I have custom ...
0 votes
1 answer
107 views
Designable view not rendered at correct position in Storyboard
I have a custom designable view class that looks like this: @IBDesignable class AuthInputView: UIView { static let nibName = "AuthInputView" @IBOutlet weak var mainContainerView:...
0 votes
1 answer
111 views
Can we use a nested class for IBDesignable?
I am developing a graphic library in Swift. The code cannot be shared, but I made a sample here (see the button example, Radio buttons were dedicated to another question). I would like to have a ...
2 votes
1 answer
117 views
IBDesignable rendered at the top left of the screen instead of their correct position
I have a custom implementation of a checkbox / radio button in Swift. The class is annotated as @IBDesignable. I implement layoutSubviews and prepareForInterfaceBuilder. This implementation is ...
1 vote
1 answer
124 views
IBDesignable custom NSControl class - frame not resizing in Interface Builder
This is for macOS, not iOS ... thank you. I have a very simple custom slider control that has 2 @IBInspectable properties - trackHeight and knobHeight. I want my control's frame in Interface Builder ...
5 votes
1 answer
868 views
IBDesignable UIView Subclass Always Fails to Render in Interface Builder
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 ...
0 votes
0 answers
100 views
Is there a specific way of using pods or IBDesignables in iOS Frameworks?
I am working on a framework project. I have added a custom view using IBDesignable in the framework (present within the framework under the same target). I am using the 'TinyConstraints' pod for ...
1 vote
0 answers
243 views
Custom UIView with IBDesignable UIView inside not showing in app
I'm trying to create a UIView with this style: I made the circles using an @IBDesignable class, using the code in this answer: import UIKit @IBDesignable class CircleView: UIView { private var ...
0 votes
1 answer
182 views
Crash on DidSet from external XIB
I have an external XIB that is @IBDesignable. Inside the view that shows this XIB, I have this outlet. @IBOutlet weak var digitizingButton: DigitizingButton! { didSet { digitizingButton....
0 votes
1 answer
100 views
UIBezierPath draws differently in storyboard and simulator
I'm creating a custom IBDesignable control and I want to draw a set of squares in there. I have a draw(_ rect:) method which does the following: override func draw(_ rect: CGRect) { // ... ...