I noticed that IBDesignable was deprecated in the Xcode 16 release notes, and IBInspectable was deprecated in the Xcode 16.1 release notes.
So, I performed some tests on IBDesignable and IBInspectable in Xcode.
I wrote the following code:
@IBDesignable
extension UIView {
@IBInspectable var cornerRadius: CGFloat {
get {
layer.cornerRadius
}
set {
layer.cornerRadius = newValue
}
}
@IBInspectable var borderWidth: CGFloat {
get {
layer.borderWidth
}
set {
layer.borderWidth = newValue
}
}
@IBInspectable var borderColor: UIColor {
get {
UIColor(cgColor: layer.borderColor ?? .init(red: 1, green: 1, blue: 1, alpha: 0))
}
set {
layer.borderColor = newValue.cgColor
}
}
}
I cannot access the IBInspectable property in Xcode 16.
However, I can access the IBInspectable property in Xcode 16.1 and Xcode 16.2 Beta, where the Interface Builder shows it in the Attributes Inspector.
Is it possible that this will be updated later, as it differs from the release notes?
Thank you.
Post
Replies
Boosts
Views
Activity
I uploaded my app for test at TestFlight. But, some people can't download this app.
They saw the alert message about 'This app cannot be installed because its integrity could not be verified'.
I don't know why this problem.
If anyone knows a solution to this problem, please reply.
Thank you!
I have viewController stack about A -> B -> C.
I called popToViewController from C to A.
I think that deinit process is C -> B but B -> C.
Isn't stack??
I don't know why this process.....
Please answer me!!
Thank you