do not call your struct Map, give it another name, for example: MyMap. In the body SwiftUI is trying to call your Map struct, instead of the SwiftUI Map, that is why you are getting the error.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: