diff --git a/SwiftWebVC/SwiftWebVC.swift b/SwiftWebVC/SwiftWebVC.swift index 584e273..58a901c 100755 --- a/SwiftWebVC/SwiftWebVC.swift +++ b/SwiftWebVC/SwiftWebVC.swift @@ -130,7 +130,9 @@ public class SwiftWebVC: UIViewController { navBarTitle.backgroundColor = UIColor.clear if presentingViewController == nil { if let titleAttributes = navigationController!.navigationBar.titleTextAttributes { - navBarTitle.textColor = titleAttributes[.foregroundColor] as? UIColor + if let navBarTitleColor = titleAttributes[.foregroundColor] as? UIColor { + navBarTitle.textColor = navBarTitleColor + } } } else { diff --git a/SwiftWebVCFramework/SwiftWebVCFramework.xcodeproj/project.pbxproj b/SwiftWebVCFramework/SwiftWebVCFramework.xcodeproj/project.pbxproj index 67c4f98..c6e878a 100644 --- a/SwiftWebVCFramework/SwiftWebVCFramework.xcodeproj/project.pbxproj +++ b/SwiftWebVCFramework/SwiftWebVCFramework.xcodeproj/project.pbxproj @@ -344,7 +344,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.swiftweb.SwiftWebVCFramework; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Debug; }; @@ -363,7 +363,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.swiftweb.SwiftWebVCFramework; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; }; name = Release; };