Oberving instance variable of superclass in Swift

90 Views Asked by At

Suppose I have subclassed a Cocoa class or Foundation, class. In my case a CALayer:

class MyLayer: CALayer {
    ...
}

Now I'd like to add a didSetobserver to the position property of the CALayer class. Is that possible?

0

There are 0 best solutions below