Skip to content

Commit

Permalink
Update project and demo to Swift 3
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Sep 20, 2016
1 parent 2971fc0 commit 1df0fd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Demo/AppDelegate.swift
Expand Up @@ -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
}
Expand Down
8 changes: 4 additions & 4 deletions Demo/ViewController.swift
Expand Up @@ -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() {
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions RandomColorSwift.xcodeproj/project.pbxproj
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1df0fd4

Please sign in to comment.