https://kotlinlang.org logo
Title
и

Ильназ Габдрахманов

05/21/2023, 1:24 PM
Hey, guys I try to add GestureRecognizer to MKMapView from https://github.com/JetBrains/compose-multiplatform/blob/master/examples/imageviewe[…]sMain/kotlin/example/imageviewer/view/LocationVisualizer.ios.kt I found a post from 2019, with an example, but it doesn't work (attached picture) Error on click: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKMapView print:]: unrecognized selector sent to instance 0x141016c00'
o

orangy

05/21/2023, 2:52 PM
I think you need to keep hard reference to the
Target
and make it inherit
NSObject