diff --git a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample.xcodeproj/project.pbxproj b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample.xcodeproj/project.pbxproj index 084bdaf..c65b770 100644 --- a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample.xcodeproj/project.pbxproj +++ b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -328,7 +328,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.freshos.KeyboardLayoutGuideExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -347,7 +347,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = com.freshos.KeyboardLayoutGuideExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; diff --git a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/AppDelegate.swift b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/AppDelegate.swift index 3a47bdb..7f55f44 100644 --- a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/AppDelegate.swift +++ b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/AppDelegate.swift @@ -8,7 +8,7 @@ import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? diff --git a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/Extensions.swift b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/Extensions.swift index fb66a2c..124fc8f 100644 --- a/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/Extensions.swift +++ b/KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/Extensions.swift @@ -36,8 +36,8 @@ class InvertedButton: UIButton { } } - override func awakeFromNib() { - super.awakeFromNib() + required init?(coder: NSCoder) { + super.init(coder: coder) updateBackgroundColor() }