swiftuiwwdcios14

Can SwiftUI 2.0 new features introduced in WWDC 2020 run on iOS 13?


SwiftUI has new features for Grid lists with lazy loading and PageView that I'm interested in implementing in my existing SwiftUI app compatible with iOS 13.

Let's say I compile my app in Xcode 12 and add these new codes, will it be compatible with iOS 13 devices? Or do i have to keep my existing code, and use the new one only if the user is running iOS 14?

Thank you


Solution

  • Let's say I compile my app in Xcode 12 and add these new codes, will it be compatible with iOS 13 devices?

    No, it will require deployment target to be set to iOS 14.

    Or do i have to keep my existing code, and use the new one only if the user is running iOS 14?

    Yes, you will need to add new features conditionally using availability checkers.