Post

Replies

Boosts

Views

Activity

Reply to Windowgroup
for anyone that runs into the same issue, i figured it out, the model3D needs to be in its own view, and you put that inside the windowgroup, instead of the model3D. e.g: import SwiftUI @main struct _5puzzleApp: App { var body: some Scene { WindowGroup { ContentView() } WindowGroup(id: "planet-earth") { EarthView() } .windowStyle(.volumetric) .defaultSize(width: 0.8, height: 0.8, depth: 0.8, in: .meters) } } struct EarthView: View { var body: some View { Model3D(named: "Earth") } }
Aug ’23