Even though my property is viewable in IB’s property inspector when I select the appropriate view, the property’s didSet
method does not update the relevant subview’s.
Here is my property:
@IBInspectable var imageRepresentation: UIImage = UIImage() {
didSet {
let image = imageRepresentation
let hv = self.headerImageView
let bv = self.backgroundImageView
self.headerImageView.image = imageRepresentation
self.backgroundImageView.image = imageRepresentation
}
}
As you can see, I’m expecting two UIImageView
’s to be updated to the new image. However, when I use the Editor
> Debug Selected Views
and set a breakpoint, each of my views are nil.
I’d love to hear anyones ideas.
Thanks