// // AppDelegate.swift // CapFinder // // Created by User on 31.01.18. // Copyright © 2018 User. All rights reserved. // import UIKit import CoreData import SwiftyDropbox @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { /// Main tint color of the app static let tintColor = UIColor(red: 122/255, green: 155/255, blue: 41/255, alpha: 1) var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { DropboxClientsManager.setupWithAppKey("n81tx2g638wuffl") DiskManager.setupOnFirstLaunch() return true } var frontmostViewController: UIViewController? { var controller = window?.rootViewController while let presentedViewController = controller?.presentedViewController { controller = presentedViewController } return controller } func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { DropboxController.shared.handle(url: url) return true } }