From 7bc5169f9eb85769a4ff3f2a71c0c9c12f493e5c Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Fri, 19 Aug 2016 12:27:12 -0400 Subject: [PATCH] Xcode 8 beta 6 build error fixes. --- Podfile.lock | 2 +- examples/apps/Catalog/Catalog/AppDelegate.swift | 2 +- src/CoreAnimationMotionFamily.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Podfile.lock b/Podfile.lock index 0d5e572..7bf7c64 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -16,7 +16,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: MaterialMotionRuntime: - :commit: 4efc25cb53c264b78b736277e9d8d3e2afaf9620 + :commit: 6fd31d275d7fda65331ed170ae393de8f84f6e2f :git: https://github.com/material-motion/material-motion-runtime-objc.git SPEC CHECKSUMS: diff --git a/examples/apps/Catalog/Catalog/AppDelegate.swift b/examples/apps/Catalog/Catalog/AppDelegate.swift index 2d9094a..62c2ae3 100644 --- a/examples/apps/Catalog/Catalog/AppDelegate.swift +++ b/examples/apps/Catalog/Catalog/AppDelegate.swift @@ -21,7 +21,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { let window = UIWindow(frame: UIScreen.main.bounds) self.window = window window.rootViewController = UINavigationController(rootViewController: PopupMenuViewController()) diff --git a/src/CoreAnimationMotionFamily.swift b/src/CoreAnimationMotionFamily.swift index d5b2c13..6b8d54c 100644 --- a/src/CoreAnimationMotionFamily.swift +++ b/src/CoreAnimationMotionFamily.swift @@ -34,7 +34,7 @@ extension CAAnimation: Plan { var willStart: DelegatedPerformanceTokenReturnBlock! var didEnd: DelegatedPerformanceTokenArgBlock! - required init(target: AnyObject) { + required init(target: Any) { if let view = target as? UIView { self.target = view.layer } else {