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.