RealityView size in visionOS

I am working on some demo with RealityKit, however it seems to me that the default size/position of a RealityKit app is way smaller / further / higher than normal apps.

I am using the RealityKit template as example.

May I know how to adjust this behavior?

You can adjust the default size of a volumetric window with following code:

WindowGroup(id: "WindowName") {
    SomeView()
}
.windowStyle(.volumetric)
.defaultSize(width: 1, height: 1, depth: 1, in: .meters)
RealityView size in visionOS
 
 
Q