Skip to content

Commit 7d2e679

Browse files
committed
Udpates example project to Swift 6
1 parent c15d59c commit 7d2e679

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

KeyboardLayoutGuideExample/KeyboardLayoutGuideExample.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -328,7 +328,7 @@
328328
);
329329
PRODUCT_BUNDLE_IDENTIFIER = com.freshos.KeyboardLayoutGuideExample;
330330
PRODUCT_NAME = "$(TARGET_NAME)";
331-
SWIFT_VERSION = 5.0;
331+
SWIFT_VERSION = 6.0;
332332
TARGETED_DEVICE_FAMILY = "1,2";
333333
};
334334
name = Debug;
@@ -347,7 +347,7 @@
347347
);
348348
PRODUCT_BUNDLE_IDENTIFIER = com.freshos.KeyboardLayoutGuideExample;
349349
PRODUCT_NAME = "$(TARGET_NAME)";
350-
SWIFT_VERSION = 5.0;
350+
SWIFT_VERSION = 6.0;
351351
TARGETED_DEVICE_FAMILY = "1,2";
352352
};
353353
name = Release;

KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
@UIApplicationMain
11+
@main
1212
class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?

KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/Extensions.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class InvertedButton: UIButton {
3636
}
3737
}
3838

39-
override func awakeFromNib() {
40-
super.awakeFromNib()
39+
required init?(coder: NSCoder) {
40+
super.init(coder: coder)
4141
updateBackgroundColor()
4242
}
4343

0 commit comments

Comments
 (0)