I making an app using compose multiplatform that h...
# compose
m
I making an app using compose multiplatform that has a map view. when implementing the map view in iOS I’m using its interoperability capabilities to make a UI view containing a GMSMapView, while the map view is visible there’s a marker that moves based on a flow of locations, when I navigate to another screen and go back to the map view the marker initially moves to a random location that’s unrelated to where it initially was. In the MapView composable which wraps the UIKitView I initialize the GMSMapView, GMSCameraPosition, and GMSMarker, so is there a best practice for interoperability and using the UIKitView with native iOS views that depend on other native iOS objects, and more specifically is there a best practice for that use case? I'm using decompose for navigation and MVIKotlin for state management
154 Views