diff --git a/Demo/AppDelegate.swift b/Demo/AppDelegate.swift index 07330e2..b54a001 100644 --- a/Demo/AppDelegate.swift +++ b/Demo/AppDelegate.swift @@ -29,8 +29,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 { // Override point for customization after application launch. return true } diff --git a/Demo/ViewController.swift b/Demo/ViewController.swift index 5eda373..01e8979 100644 --- a/Demo/ViewController.swift +++ b/Demo/ViewController.swift @@ -29,9 +29,9 @@ class ViewController: UICollectionViewController { var colors: [UIColor]! - private var count = 99 - private var hue: Hue = .random - private var luminosity: Luminosity = .light + fileprivate var count = 99 + fileprivate var hue: Hue = .random + fileprivate var luminosity: Luminosity = .light //MARK: Life cycle override func viewDidLoad() { @@ -41,7 +41,7 @@ class ViewController: UICollectionViewController { } //MARK: Segue Transition - override func prepare(for segue: UIStoryboardSegue, sender: AnyObject?) { + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "showSetting" { let settingVC = (segue.destination as! UINavigationController).topViewController as! SettingViewController settingVC.delegate = self diff --git a/RandomColorSwift.xcodeproj/project.pbxproj b/RandomColorSwift.xcodeproj/project.pbxproj index efb6355..882411b 100644 --- a/RandomColorSwift.xcodeproj/project.pbxproj +++ b/RandomColorSwift.xcodeproj/project.pbxproj @@ -645,6 +645,7 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; @@ -671,6 +672,7 @@ isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1;