// We need to keep reference to controller as Objective-C will only keep weak reference here.
lateinitprivatevarcontroller:NSObject
funinitLayer(viewController:SkikoViewController){
this.view=viewController.view
actualfunattachTo(container:Any){
attachTo(containerasUIView)
}
funattachTo(view:UIView){
this.view=view
// See https://developer.apple.com/documentation/uikit/touches_presses_and_gestures/using_responders_and_the_responder_chain_to_handle_events?language=objc