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? ...