title: How can I add a MapView to another View in Swift?
body: <p>I have 2 tabs in my application. On the first one, I display a <code>View</code> (which is myView, a self defined struct) and on the second one I want to display a MapView. I found several tutorials, showing how to add a MapView via Storyboard, but I don't get how I can finally display it in one of my Tabs. The tabs are created as follows:</p>
  
  <pre><code>struct ContentView: View {
      @State private var selection = 0
  
      var body: some View {
          TabView(selection: $selection){
              myView()
                  .font(.title)
                  .tabItem {
                      VStack {
                          Image(systemName: "list.dash")
                          Text("Events")
                      }
                  }
                  .tag(0)
              Text("MAP")//here I want the MapView
                  .tabItem {
                      VStack {
                          Image(systemName: "map")
                          Text("Map")
                      }
                  }
                  .tag(1)
          }
      }
  }
  </code></pre>
  
  <p>I want to insert the Map instead of the now placed "Text("MAP")".</p>