Hi, you can convert these points to meters using PhysicalMetricsConverter.
@Environment(\.physicalMetrics) private var metricsConverter: PhysicalMetricsConverter
var body: some View {
GeometryReader3D { proxy in
let sizeInMeters = metricsConverter.convert(proxy.size, to: .meters)
let _ = print(sizeInMeters)
Post
Replies
Boosts
Views
Activity
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
...