For a while, presenting a form sheet in SwiftUI, equivalent to the UIModalPresentationStyle.formSheet, was a challenge. On iPadOS 18, with the new presentationSizing() modifier, we can easily achieve this using the form sizing option! #WWDC24 #iOSDev #SwiftUI
https://nilcoalescing.com/blog/FormSheetInSwiftUI/
Present a form sheet in SwiftUI

Starting from iPadOS 18, SwiftUI now allows us to present a form sheet, similar to UIModalPresentationStyle.formSheet.

Nil Coalescing
@natpanferova I feel like you’re gonna have a lot of stuff to write about this summer 😛
@axiixc so many new APIs to try out 🤩
@natpanferova This is the kind of thing that irks me about iOS development: There's no backporting for useful stuff like that, so you need to wait 2-3 years to actually use stuff like that without providing a conditional implementation for older OS.
@dzamir I know, it can be really frustrating. I try to work on side projects and write blog posts, so that I can play around with the new APIs before I get to use them in my main job.