set minimum size of HUB

This commit is contained in:
Bob Sun 2017-02-08 19:17:53 +08:00
parent ff0d0db1ae
commit 76b863f00a
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -9,6 +9,7 @@
import UIKit
import CoreData
import PasscodeLock
import SVProgressHUD
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
@ -22,6 +23,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
SVProgressHUD.setMinimumSize(CGSize(width: 150, height: 100))
passcodeLockPresenter.present()
if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem {
print(shortcutItem.type)