How to write main function in a Swift iOS project
import Foundation | |
import UIKit | |
UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, NSStringFromClass(UIApplication.self), NSStringFromClass(AppDelegate.self)) | |
// Remeber to comment or remove `@UIApplicationMain` in your AppDelegate.swift |
This comment has been minimized.
This comment has been minimized.
@kylinroc Thanks for the suggestion!!! I just did not notice that property. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Why not just pass
CommandLine.unsafeArgv
toUIApplicationMain
's second parameter?