in my ios (swift) app, I have created main.swift in which I am setting a global variable against checking an NSDefault to check for ads removed.
then in each viewcontroller, i am first checking against that global variable and removing ads if appropriate before showing the view.
problem is that xcode does not like @UIApplicationMain in AppDelegate.swift because i have a main.swift. If I remove the line @UIApplicationMain the app crashes on launch.
Am I implementing main.swift wrong?