Posts

Post not yet marked as solved
1 Replies
0 Views
I've made progress on getting NSTextCheckingClient to work. Still not sure that my Implementation is right, but at least some things work. Would be great to get some expert eyes on this code so there will be a good Swift implementation of NSTextInputClient and NSTextCheckingClient for developers to find.
Post not yet marked as solved
1 Replies
0 Views
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) }