Demonstration of potential approach for animating pins between states
Changing zIndex results in blink update similar to reported issue above
Demo |
---|
Due to lack of SPM support, the easiest setup method involves installing Follow xcFramework Manual setup instructions
-
Download SDK Source files: GoogleMaps-8.0.0
-
Drag the following XCFrameworks into the "Frameworks" folder in the ProjectDirectory
- ProjectDir/Frameworks/GoogleMapsBase.xcframework
- ProjectDir/Frameworks/GoogleMaps.xcframework
- ProjectDir/Frameworks/GoogleMapsCore.xcframework
- (Premium Plan customers only) GoogleMaps-x.x.x/GoogleMapsM4B.xcframework
-
Set your API key here
Using a simpler case and only chancing color |
---|
Using the buttons in lower right, add, then update the marker (toggling between colors). On each update that enables, then disables tracksViewChanges the marker iconView will disappear, then re-appear on screen. Slow down the video (scrub it), and you will notice that you can see through the square marker between each update. |
RPReplay_Final1678985724.MP4
Simulator Demo (No blinking) |
---|
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-03-01.at.12.24.48.mp4
Run on device (Blinking when content is updated |
---|
If you download and scrub the video, you'll notice the marker's iconView is visible, disappears, then reappears on screen |