что такое Zoom transition
Generated on 8/8/2024
1 search
Zoom transition is a new type of transition introduced in iOS 18 that enhances the visual continuity in your app by morphing a tapped cell into the incoming view. This transition is continuously interactive, allowing users to grab and drag it around from the beginning or during the transition. It is particularly useful in parts of your app where you transition from a large cell, as it keeps the same UI elements on screen across the transition.
To implement a zoom transition in SwiftUI, you need to:
- Add the
navigationTransitionStyle
modifier to the presented view and specify the zoom transition. - Connect this modifier to a source view so that the system knows which view to zoom from.
For UIKit, the process is similar:
- Specify on the push view controller that it would like to zoom.
- Provide the view to use as a source of the zoom transition.
This transition is also interruptible, making your app feel more responsive as users navigate your UI. It has been well-received in apps like Photos and Notes, where it enhances the user experience by allowing fluid and interactive transitions.
For more details, you can refer to the session Enhance your UI animations and transitions at the timestamp 02:07.
Enhance your UI animations and transitions
Explore how to adopt the zoom transition in navigation and presentations to increase the sense of continuity in your app, and learn how to animate UIKit views with SwiftUI animations to make it easier to build animations that feel continuous.
Create custom visual effects with SwiftUI
Discover how to create stunning visual effects in SwiftUI. Learn to build unique scroll effects, rich color treatments, and custom transitions. We’ll also explore advanced graphic effects using Metal shaders and custom text rendering.
Platforms State of the Union
Discover the newest advancements on Apple platforms.
What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.
What’s new in DockKit
Discover how intelligent tracking in DockKit allows for smoother transitions between subjects. We will cover what intelligent tracking is, how it uses an ML model to select and track subjects, and how you can use it in your app.