Fill the blank
Fill the blank to show a standard balloon marker with each store's name.
Map {
ForEach(stores) { store in
____(store.name, coordinate: store.coordinate)
}
}Hint 1 of 1
The standard balloon has its own type.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Marker
Correct. It draws the system balloon with a title.
Why not the others?
- B
MapPin. MapPin is deprecated in iOS 17 and isn't used in MapContent builders. - C
MKPointAnnotation. That's a UIKit/MapKit class, not SwiftUI map content. - D
Annotation. Annotation also takes a custom view closure; Marker is the standard balloon.