Post

Replies

Boosts

Views

Activity

Reply to 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 ...
Oct ’23