interface builder

Hello, my name is Aurélio, I'm from Brazil, I'm 52 years old, I need some help, I'm taking the Swift course online, I have a question that I have to answer but I can't. the port would be this

If you want Interface Builder to reflect UI changes that you have written in code, you must prefix your custom class with what designation? but I've tried several answers but it's always wrong. and this message appears, could you help me to solve it please.

@IBDesignable Incorrect The IBDesignable designation lets Interface Builder know that it should render the view directly on the canvas. This allows seeing how your custom views will appear without building and running your app after each change.

If you want Interface Builder to reflect UI changes that you have written in code, you must prefix your custom class with what designation?

What do you mean by designation ? Is it @IBDesignable ? Yes, that's it.

@IBDesignable Incorrect 

You know that find the perfect word is always difficult. It could have been @IBRendable but in fact, IBDesignable can work with @IBInspectable, which let you set some properties of the custom class directly in IB. Hence, the customObject is effectively designable. 

Anyway, at the end of the day, what is important is that IBDesignable/Inspectable let you use your custom class in IB just in the same way you use system classes.

Per WWDC videos and per what Apple has posted (e.g. “SwiftUI previews are immediately interactive”), the Xcode 14 beta might interest.

interface builder
 
 
Q