Convert to Swift 4.0 syntax

This commit is contained in:
Charles Magahern
2019-09-24 22:17:16 -07:00
parent 12f9b4eff0
commit 51d0faf556
8 changed files with 38 additions and 13 deletions

View File

@@ -14,10 +14,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate
var window: UIWindow?
var mainViewController: MainViewController = MainViewController()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
application.isStatusBarHidden = true
self.window = UIWindow(frame: UIScreen.main.bounds)
self.window?.rootViewController = self.mainViewController
self.window?.makeKeyAndVisible()
@@ -35,7 +34,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate
self.mainViewController.viewDidDisappear(false)
}
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask
func application(_ application: UIApplication,
supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask
{
var mask: UIInterfaceOrientationMask = .portrait