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
Backward compatibility is still a problemSwiftUI is supported only from iOS 13 and higher. In 2019 and 2020 it was a serious problem.
Where can SwiftUI be used? SwiftUI runs on iOS 13, macOS 10.15, tvOS 13, and watchOS 6, or any future later versions of those platforms.
First and foremost, SwiftUI can only be used from iOS 13 and up. Given that most apps these days need to be backward compatible one or two versions (i.e. iOS 12 and 11), you won't see many apps completely built with SwiftUI yet.
No backward compatibility First, because it lacks backward compatibility. SwiftUI is supported only on iOS 13 and higher. Even if this version of mobile OS is used by most iPhones & iPads, it still isn't by all of them. There are still many iOS-12-and-lower devices.
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.
According to wwdc video SwiftUI 2.0 is for iOS 14 it mean the deployment target for app should be set to iOS 14. Apple says that iOS 14 can run on the iPhone 6s and later, which is the exact same as iOS 13. This means that any iPhone supported by iOS 13 is also supported by iOS 14. So without any second thought you can go ahead with new features of SwiftUI
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With