New animations in SwiftUI

Generated on 10/3/2024

1 search

Apple introduced several new features and enhancements for animations in SwiftUI at WWDC 2024. Here are some highlights:

  1. New Animation Presets for SF Symbols: SwiftUI now includes new animation presets such as the wiggle, breathe, and rotate effects for SF Symbols. These effects allow for more dynamic and attention-grabbing animations. For more details, you can refer to the session What’s new in SwiftUI.

  2. Zoom Transition: A new zoom transition has been introduced, which allows a cell to morph into the incoming view. This transition is continuously interactive, enabling users to drag it around during the transition. This feature enhances the sense of continuity in your app. More information can be found in the session Enhance your UI animations and transitions.

  3. SwiftUI and UIKit Interoperability: SwiftUI animations can now be used to animate UIKit and AppKit views. This integration allows developers to use the full suite of SwiftUI animation types, including custom animations, to animate UIKit views. This feature is particularly useful for creating fluid gesture-driven animations. For more details, see the session Enhance your UI animations and transitions.

  4. Improved Scrolling Enhancements: SwiftUI now offers more control over scroll views, allowing developers to react to changes in content, offsets, and content size. This includes detecting when a view's visibility changes due to scrolling, enabling the creation of experiences centered around content moving on or off-screen. More information is available in the session What’s new in SwiftUI.

These updates make SwiftUI animations more powerful and versatile, allowing for more seamless integration with other frameworks and more dynamic user interfaces.

What’s new in SwiftUI

What’s new in SwiftUI

Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

What’s new in UIKit

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.

Enhance your UI animations and transitions

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.

Platforms State of the Union

Platforms State of the Union

Discover the newest advancements on Apple platforms.

SwiftUI essentials

SwiftUI essentials

Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.