-3

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?

inexcitus
  • 2,471
  • 2
  • 26
  • 41
SinaMN75
  • 6,742
  • 5
  • 28
  • 56

2 Answers2

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