In iOS 26 is there a new way to calculate the height of an element? with .background(GeometryReader { geometry in

Asked on 2026-02-12

1 search

In iOS 26, there is no specific mention of a new way to calculate the height of an element using .background(GeometryReader { geometry in ... }) in the provided context. However, there are enhancements in SwiftUI related to spatial layouts and 3D views, particularly in the context of visionOS and volumetric experiences. These enhancements include new depth-based variants of modifiers and tools for creating 3D layouts, which might indirectly affect how you manage layout calculations in a 3D space.

For more detailed information on spatial layouts and 3D views, you can refer to the session Meet SwiftUI spatial layout (02:47).

In iOS 26 is there a new way to calculate the height of an element? with .background(GeometryReader { geometry in | Ask WWDC