© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. NekrasovSwift Recipes for iOS Developershttps://doi.org/10.1007/978-1-4842-8098-0_8

8. SwiftUI

Alexander Nekrasov1  
(1)
Moscow, Russia
 

SwiftUI is a modern way of building user interfaces. It appeared in iOS 13, macOS 10.15, tvOS 13, and watchOS 6. Nowadays, most apps don’t need to support iOS 12, so it’s safe to use SwiftUI in your project.

On the other hand, there’s huge code base written in UIKit. Hundreds of popular libraries appeared before SwiftUI or support old versions of iOS. That’s why in this chapter, we’ll talk not only about SwiftUI but also about mixing two frameworks.

What is SwiftUI? Is it a wrapper around UIKit or an independent platform? ...

Get Swift Recipes for iOS Developers: Real-Life Code from App Store Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.