SwiftUI continues adding features but can’t do everything possible in UIKit or AppKit. That’s because many built-in frameworks don’t have a corresponding component in SwiftUI. Other components exist but don’t offer all the features of the original framework, such as MapKit. When moving an app from UIKit to SwiftUI, you also might need to work with internally developed or third-party controls already in use during the transition.
The good news is that you can access anything from AppKit or UIKit in SwiftUI. SwiftUI includes libraries and integration that help you build on an existing framework and extend it to add features. This capability lets you replicate or extend functionality while building your app in SwiftUI.
In this lesson, you’ll take the timeline from Lesson 2 and see how to integrate it with the feature-rich MapKit control from UIKit.
By the end of this lesson, you’ll be able to:
Describe the process of integrating SwiftUI views with UIKit components.
Demonstrate the use of UIViewRepresentable and coordinator classes to include UIKit frameworks in SwiftUI projects.
Now that you have a map, it’s time to embark!
See forum comments
This content was released on Mar 12 2025. The official support period is 6-months
from this date.
Learn how to work with UIKit frameworks in your SwiftUI project.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.