0

Our user base for iOS 13 and below is small and would like to serve them only a WKWebView that points to our website, especially since it already incorporates responsive design.

Can providing 2 entry points based on version be achieved, such as:

#If iOS 14+
@main
struct HonkApp: App {
    ...
}
#else
class AppDelegate: UIResponder, UIApplicationDelegate {
    ...
}
#endif

How can something like this be done? Any help or advise would be appreciated!

TruMan1
  • 33,665
  • 59
  • 184
  • 335
  • Maybe take a look at [@available](https://www.hackingwithswift.com/new-syntax-swift-2-availability-checking) – Bill Oct 28 '20 at 02:28
  • 1
    Does this answer your question https://stackoverflow.com/questions/62935053/use-main-in-xcode-12? – Asperi Oct 28 '20 at 04:17

0 Answers0