Can we use the SwiftUI for every IOS app version?

Hi every one, if you build a mobile project with SwiftUI, is it possible to use the app for sub version of IOS like iPhone 6s devices ?

Answered by Frameworks Engineer in 678466022

SwiftUI is available on any version of iOS starting with iOS 13.0. iPhone 6s supports iOS 14, and it was announced at WWDC21 that iPhone 6s will run the upcoming iOS 15 release.

Certain versions of iOS may include SwiftUI features that aren't available in older releases of iOS, in which case you could set your app's deployment target to a newer version of iOS, or utilize different SwiftUI views for different versions where necessary.

is it possible to use the app for sub version of IOS like iPhone 6s devices ?

I may be mistaking what you mean by sub version of IOS, but you should better check the documentations of SwiftUI components. For example, View -- a very basic component in SwiftUI -- has an Availability notation as iOS 13.0+.

Generally, SwiftUI was introduced in iOS 13 and SwiftUI apps run only on devices with iOS 13 or later. If the app may be using some feature available only in later iOS, it will run on devices with such iOS versions.

Accepted Answer

SwiftUI is available on any version of iOS starting with iOS 13.0. iPhone 6s supports iOS 14, and it was announced at WWDC21 that iPhone 6s will run the upcoming iOS 15 release.

Certain versions of iOS may include SwiftUI features that aren't available in older releases of iOS, in which case you could set your app's deployment target to a newer version of iOS, or utilize different SwiftUI views for different versions where necessary.

Can we use the SwiftUI for every IOS app version?
 
 
Q