I'm seeing this is NOT a good pattern. Found a case where layer.mySublayer.presentation()! in context of init(layer: Any).
With that said I still am not quite sure what the correct behavior should be... does it make sense for the presentation layer to hold references to model layers? So for example replace the above with:
override init(layer: Any) {
let layer = layer as! MyLayer
mySublayer = layer.mySublayer
super.init(layer: layer)
}
Topic:
Media Technologies
SubTopic:
Audio
Tags: