You must be signed in to watch this lesson.
Show Map Markers with Toggle
SwiftUI Mastery Travel Discovery
SwiftUI applications will utilize Toggles in a lot of different situations. In today's video, we'll learn how to show MapMarker annotation markers inside of our maps. Next we'll go over how to toggle these markers using a Button and Toggle component.

Comments (2)
3 years ago
Here is a Medium Blog to show the MKMapViewDelegate methods to show/make a pin annotation callout in SwiftUI https://medium.com/flawless-app-stories/mapkit-in-swiftui-c0cc2b07c28a Please let me know if that's what you were looking for!
Brian Voong
3 years ago
Daryl Wong
3 years ago
For those who are lazy to type just like me: let attractions: [Attraction] = [ .init(name: "Eiffel Tower", latitude: 48.858605, longitude: 2.2946), .init(name: "Champs-Elysees", latitude: 48.866867, longitude: 2.311780), .init(name: "Louvre Museum", latitude: 48.860288, longitude: 2.337789) ]
3 years ago