Check out the repo by Sam McGarry here - https://github.com/fieldday-ai/Modals
Keep in mind this does in fact work in iOS 15! SO even though many in the comments might want to point out a more native solution to this, those were introduced in iOS 16. So, this provides a solution that also includes quite a bit of customization to the corner radius, colors & much more because you can also fork this repo and edit it to your heart's content. :]
Watch video How to Build a Custom Sheet in SwiftUI! online, duration hours minute second in high quality that is uploaded to the channel Jared Davidson 30 September 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,458 times and liked it 59 visitors.