I started using SwiftUI
on Xcode 11, something that bothered me is that when I change the iOS deployment Target
to iOS 12 or below, none of SwiftUI
code gets compiled.
Is SwiftUI
designed to use only on iOS 13 and above?
Asked
Active
Viewed 3,222 times
-3
-
3very basic search on google and reading out apple's docs for swiftUI, could have answered your question. – Umair Afzal Jul 02 '19 at 10:36
2 Answers
2
SwiftUI is designed for iOS 13 (or higher in the future). See SwiftUI Documentation, top right column SDKs.

Shamrai Aleksander
- 13,096
- 3
- 24
- 31

René Kok
- 44
- 2
1
Yes, for the target iOS 13 and Above the Swift UI is available, if you want to provide support for lower versions, you will have to stick to UIKit.
Checkout video here: https://developer.apple.com/videos/play/wwdc2019/224/

Bhavin Kansagara
- 2,866
- 1
- 16
- 20