IBInspectable & watchkit
You can't, because for WatchKit they are interface objects instead of views. Apple intentionally uses different terms for them because they are fundamentally different things.
Interface objects are proxies for these actual views in a real clock application (not in your clock extension). They interact through WatchKit via Bluetooth to actually manipulate the corresponding properties of these actual representations on the watch display.
When you set the text WKInterfaceLabel
, all it does is just record the change you want to create, and then push the changes with other run loop changes to the clock as a batch. The Watch operating system will extract all information from these proxy objects and actually change the text in UILabel
the Watch.
Therefore IBDesignable and IBInspectable don't really work. Although they are presented in a similar way in Interface Builder, they are really different things.
source to share