If target is set to iOS13 - following error appears
'main()' is only available in iOS 14.0 or newer @available(iOS 14.0, *)
@main
struct MainApp: App {
var body: some Scene {
WindowGroup {
Text("Hello, world!").padding()
}
}
}
What are the options and best practises to start using new SwiftUI concepts, views and features while maintaining backward compatibility with iOS13 ?