diff --git a/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/project.pbxproj b/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/project.pbxproj index 9c254c0..36222d8 100644 --- a/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/project.pbxproj +++ b/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/project.pbxproj @@ -276,7 +276,7 @@ attributes = { LastSwiftMigration = 0700; LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Tristan Himmelman"; TargetAttributes = { 6A412A2A1BB1CBA4001C3F67 = { @@ -465,14 +465,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -512,14 +518,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/xcshareddata/xcschemes/HidingNavigationBar.xcscheme b/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/xcshareddata/xcschemes/HidingNavigationBar.xcscheme index e59dee0..22da9ab 100644 --- a/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/xcshareddata/xcschemes/HidingNavigationBar.xcscheme +++ b/HidingNavigationBarSample/HidingNavigationBarSample.xcodeproj/xcshareddata/xcschemes/HidingNavigationBar.xcscheme @@ -1,6 +1,6 @@ @@ -36,6 +37,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/HidingNavigationBarSample/HidingNavigationBarSample/HidingNavTabViewController.swift b/HidingNavigationBarSample/HidingNavigationBarSample/HidingNavTabViewController.swift index 9eb614e..611e216 100644 --- a/HidingNavigationBarSample/HidingNavigationBarSample/HidingNavTabViewController.swift +++ b/HidingNavigationBarSample/HidingNavigationBarSample/HidingNavTabViewController.swift @@ -49,7 +49,7 @@ class HidingNavTabViewController: UIViewController, UITableViewDataSource, UITab hidingNavBarManager?.viewWillDisappear(animated) } - func cancelButtonTouched(){ + @objc func cancelButtonTouched(){ navigationController?.dismiss(animated: true, completion: nil) } diff --git a/HidingNavigationBarSample/HidingNavigationBarSample/MasterViewController.swift b/HidingNavigationBarSample/HidingNavigationBarSample/MasterViewController.swift index 816b256..78d0b1e 100644 --- a/HidingNavigationBarSample/HidingNavigationBarSample/MasterViewController.swift +++ b/HidingNavigationBarSample/HidingNavigationBarSample/MasterViewController.swift @@ -23,7 +23,7 @@ class MasterViewController: UITableViewController { func styleNavigationController(_ navigationController: UINavigationController){ navigationController.navigationBar.isTranslucent = true - navigationController.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white] + navigationController.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.white] navigationController.navigationBar.tintColor = UIColor.white navigationController.navigationBar.barTintColor = UIColor(red: 41/255, green: 141/255, blue: 250/255, alpha: 1) }