Are there any new api's to make a sheet conform to the height of its content?
Asked on 2025-09-19
1 search
Yes, there is a new API in SwiftUI that simplifies presentation sizing across platforms, allowing you to create perfectly sized sheets that conform to the height of their content. You can use the presentation sizing modifier to achieve this. This was mentioned in the session What’s new in SwiftUI under the "Fresh apps: Presentation sizing" chapter.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Platforms State of the Union
Discover the newest advancements on Apple platforms.