Expert Swift Ch2 QuadTree Final not working

I built and loaded the final folder for the QuadTree demo and it loads but touching the screen has no effect. Same with the starter with the code examples.
Tried with both Simulator and IPAD Pro.
iOS 14 (build target)
Xcode 13.4.1

The simulator IOS 14.4
and iPad was IOS 15.6.1

on the iPad it is in the left side (menu) window only, the β€œmain” window does not have any gesture activity. Not my expected behaviour.

Simulator Screen Shot - iPad Pro (9.7-inch) - 2022-10-15 at 10.42.51

1 Like

Thanks for reporting the problem. On SwiftUI the iPad defaults to a main-detail style list navigation. To make it use the whole screen you need to add the modifier .navigationViewStyle(.stack).

You can open AppMain.swift and add it there:

@main
struct AppMain: App {
  var body: some Scene {
    WindowGroup {
      ContentView().navigationViewStyle(.stack)
    }
  }
}

Screen Shot 2022-10-17 at 3.14.55 PM

1 Like