Skip to content

Commit 3f31c45

Browse files
committed
- Fixed a compilation issue for swift version lesser than 4.2
1 parent 012ef1d commit 3f31c45

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Demo/Objective_C_Demo/Resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>6.4.0</string>
24+
<string>6.4.1</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>UILaunchStoryboardName</key>

Demo/Swift_Demo/Resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>6.4.0</string>
24+
<string>6.4.1</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>UILaunchStoryboardName</key>

IQKeyboardManagerSwift.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "IQKeyboardManagerSwift",
3-
"version": "6.4.0",
3+
"version": "6.4.1",
44
"source": {
55
"git": "https://github.com/hackiftekhar/IQKeyboardManager.git",
6-
"tag": "v6.4.0"
6+
"tag": "v6.4.1"
77
},
88
"summary": "Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView.",
99
"homepage": "https://github.com/hackiftekhar/IQKeyboardManager",

IQKeyboardManagerSwift/IQKeyboardManager.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,13 @@ Codeless drop-in universal library allows to prevent issues of keyboard sliding
18581858
currentStatusBarOrientation = UIApplication.shared.statusBarOrientation
18591859
#endif
18601860

1861-
guard let statusBarOrientation = notification.userInfo?[UIApplication.statusBarOrientationUserInfoKey] as? Int, currentStatusBarOrientation.rawValue != statusBarOrientation else {
1861+
#if swift(>=4.2)
1862+
let statusBarUserInfoKey = UIApplication.statusBarOrientationUserInfoKey
1863+
#else
1864+
let statusBarUserInfoKey = UIApplicationStatusBarOrientationUserInfoKey
1865+
#endif
1866+
1867+
guard let statusBarOrientation = notification.userInfo?[statusBarUserInfoKey] as? Int, currentStatusBarOrientation.rawValue != statusBarOrientation else {
18621868
return
18631869
}
18641870

0 commit comments

Comments
 (0)