transition between swiftui and uikit
Generated on 5/6/2025
1 search
To transition between SwiftUI and UIKit, Apple has introduced several enhancements in iOS 18 that improve interoperability between these frameworks, particularly in the areas of animations and gesture recognizers.
-
SwiftUI Animations in UIKit: You can now use SwiftUI animation types to animate UIKit views. This allows you to leverage the full suite of SwiftUI animations, including custom animations, to animate UIKit views. This integration ensures that animations run perfectly in sync across both frameworks. For more details, you can refer to the session Enhance your UI animations and transitions.
-
Gesture Recognizers: The gesture systems in UIKit and SwiftUI have been unified, allowing for consistent rules and dependencies between gestures across both frameworks. This means you can coordinate gestures more easily, such as having a single tap gesture in UIKit coexist with a double tap gesture in SwiftUI. For more information, see the session What’s new in UIKit.
These improvements make it easier to build fluid, gesture-driven animations and transitions that seamlessly integrate SwiftUI and UIKit components.

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.

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.

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.

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.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

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.