16.4 SwiftUI vs. UIKit
With the choice of using UIKit and SwiftUI now available, the obvious question arises as to which is the best option. When making this decision it is important to understand that SwiftUI and UIKit are not mutually exclusive. In fact, several integration solutions are available (a topic area covered starting with the chapter entitled “Integrating UIViews with SwiftUI”).
The first factor to take into consideration during the decision process is that any app that includes SwiftUI-based code that takes advantage of the latest features (such as WidgetKit) will only run on devices running iOS 14 or later. This means, for example, that your app will only be available to users with the following iPhone models:
•iPhone 11
•iPhone 11
•iPhone 11 Pro
•iPhone 11 Pro Max
•iPhone XS
•iPhone XS Max
•iPhone XR
•iPhone X
•iPhone 8
•iPhone 8 Plus
•iPhone...