I'm looking for a method or notification to detect window resizing. While I found didResizeNotification for macOS, it's not available in visionPro
How can I detect when a window is resized in VisionOS?
Hi, you can use the GeometryReader3D.
If you need the size of the window in meters, you can convert it using PhysicalMetricsConverter
@Environment(\.physicalMetrics) private var metricsConverter: PhysicalMetricsConverter
var body: some View {
GeometryReader3D { proxy in
let _ = print(proxy.size, metricsConverter.convert(proxy.size, to: .meters))
RealityView { content, attachments in
...