is it possible to have SwiftUI single code base for iOS14 and 13?

I started developing an app using Xcode 12 and SwiftUI, but it can only target iOS14. When I switch the target to iOS13, it can't compile the <name>app.swift file with the main, scene, windowGroup.

Comparing the SwiftUI app generated with Xcode 11, it is so different than the one generated with Xcode 12. There is no App file. Instead it has the AppDelegate and SceneDelegate. Is it possible to combine both in a single app?

I need other people to test the app for me but none of them have iOS14 beta devices available...
If you create a SwiftUI app with Xcode 11, it will run both on iOS 13 and 14.
The template project made by Xcode 12 will not run on iOS 13.

You should better work with AppDelegate and SceneDelegate, if you want your app available both on iOS 13 and 14.
When you create a new iOS App in Xcode, it should have an option for "UIKit AppDelegate" or something like that. That will create a new project with an AppDelegate and a SceneDelegate. You should then be able to set the minimum deployment target to iOS 13. (Note: Only do this for new projects. For older projects, you can make a new project and copy the AppDelegate.swift and SceneDelegate.swift file from the newer project to the older project and delete the file containing the struct conforming to the App protocol. You can also manually make an AppDelegate.swift and SceneDelegate.swift file, though I am unsure on how one would do that exactly.)
is it possible to have SwiftUI single code base for iOS14 and 13?
 
 
Q