Move UI code into a separate platform-specific folder

Later, we hope to have a UI/macOS folder for developing a macOS client
from this codebase.

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2018-10-13 06:59:59 +05:30
parent dd672d3dac
commit c76e5933e2
3 changed files with 24 additions and 8 deletions
@@ -0,0 +1,28 @@
//
// AppDelegate.swift
// WireGuard
//
// Created by Roopesh Chander on 11/08/18.
// Copyright © 2018 Roopesh Chander. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let window = UIWindow(frame: UIScreen.main.bounds)
window.backgroundColor = UIColor.white
self.window = window
window.rootViewController = MainViewController()
window.makeKeyAndVisible()
return true
}
}