How to reproduce MagnifyGesture on visionOS simulator

Hi, I have one question. How do I issue MagnifyGesture's onChange event in the visionOS simulator? I have tried various operations, but the onChange event does not work.

https://developer.apple.com/videos/play/wwdc2023/10111/?time=994

@main
struct WorldApp: App {
@State private var currentStyle: ImmersionStyle = .mixed
var body: some Scene {
ImmersiveSpace(id: "solar") {
SolarSystem()
.simultaneousGesture(MagnifyGesture()
.onChanged { value in
let scale = value.magnification
if scale > 5 {
currentStyle = .progressive
} else if scale > 10 {
currentStyle = .full
} else {
currentStyle = .mixed
}
}
)
}
.immersionStyle(selection:$currentStyle, in: .mixed, .progressive, .full)
}
}

Thanks.

Convert the 2D magnify gesture to a 3D one by modifying it with a "target entity" modifier.

There are few. The following option enables the gesture on all entities in the scene.

MagnifyGesture().targetedToAnyEntity()

Do you mean how to trigger a gesture in the simulator? You can try holding down the Option key and then moving your cursor.

How to reproduce MagnifyGesture on visionOS simulator
 
 
Q