Hi all....
i am moving a current app to SwiftUI. The app has mapkit map object view with a an annotation in. It is just a standard annotation nothing fancy, but with custom name. Example...pin on my house...name Mike's house
Moving to SwiftUI; if I include mapkit in its own Some view it's fine the pin works perfectly. Now if I have a summary view that uses a Navbar to move to a detail view and on that detail view is this new map view the name of the pin is shown but not the pin itself.
Example list view
-Mike's House -> via navbar to detail view
-Phil's House
-Craig's House
Mikes House
Age 1952
2 floors
Map ( with pin annotation)
the code should work, but I am going insane trying to work out why as soon as it is in a sub view the pin is not being shown. The map is correctly at the correct location, and the annotation is being shown....it's just the graphic for the pin.
setup is Catilina beta 1, Xcode beta 2.
code is very similar to apple tutorial except it adds annotations- going nuts