Presenting Sheets Of Various Heights In SwiftUI

A new view modifier makes the job easy.

Gabriel Theodoropoulos

--

Photo by Pixabay: https://www.pexels.com/photo/blank-cards-composition-data-268351/

Back in time I had written a post about sheets in SwiftUI, discussing how to present and work with them. Although the content of that tutorial remains valid, new interesting additions to sheets were introduced in WWDC 2022 that definitely deserve a new post to talk about them.

--

--

Gabriel Theodoropoulos

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev