Introducing zoom transition
This is a small improvement, but it may indicate an interesting direction Apple is taking with SwiftUI. In general, UIKit’s transitioning capabilities are very robust and provide us with the flexibility to create any transition we want. Even before that, from the beginning, UIKit had some nice built-in transitions we could use to make our navigation more appealing.
In iOS 18, Apple added a new transition that allows us to navigate to a new view using a zoom animation.
Let’s create an album grid that, when tapping on the album, transitions to a full album screen with a zoom animation:
@Namespace() var namespace var body: some View { NavigationStack { ScrollView { LazyVGrid...