If target is set to iOS13 - following error appears
What are the options and best practises to start using new SwiftUI concepts, views and features while maintaining backward compatibility with iOS13 ?
'main()' is only available in iOS 14.0 or newer
Code Block swift @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 ?
Thank you for the reply!
To summarize my understanding - to have backward compatibility with iOS13 "UIKit App Delegate" and "UIKit Scene Delegate" still has to be used (so code refactoring to @main will require to drop support for iOS13). While some new cool features like if let ... inside the view builders started to work out of the box even for target iOS13.
To summarize my understanding - to have backward compatibility with iOS13 "UIKit App Delegate" and "UIKit Scene Delegate" still has to be used (so code refactoring to @main will require to drop support for iOS13). While some new cool features like if let ... inside the view builders started to work out of the box even for target iOS13.