Is SwiftUI backwards-compatible with iOS 12.x and older?

前端 未结 11 1737
温柔的废话
温柔的废话 2020-12-01 08:36

If I have an app made with SwiftUI, will it work for iOS below iOS 13?

11条回答
  •  眼角桃花
    2020-12-01 09:22

    Sadly no, SwiftUI is only allowed in iOS 13 and above. It was introduced in the iOS 13 framework. Before iOS 13, everything was built using Obj-C framework (Including Swift).

    On the right side of the dev documentation, it shows the supported versions of iOS, macOS, tvOS, watchOS, etc.

    https://developer.apple.com/documentation/swiftui/

    Hope this helps!

提交回复
热议问题