struct ContentView: View {
   @State private var appData = ApplicationData.shared

   var body: some View {
      Map(position: $appData.cameraPos)
         .safeAreaInset(edge: .bottom) {
            if appData.openView {
               VStack {
                  LookAroundPreview(initialScene: appData.lookScene)
                     .frame(height: 200)
                     .padding()
                  Button("Hide Street") {
                     appData.openView = false
                  }.buttonStyle(.borderedProminent)
               }
            } else {
               Button("Show Street") {
                  appData.lookAround()
               }.buttonStyle(.borderedProminent)
            }
         }
   }
}