Skip to content

Commit 3fb2821

Browse files
committed
fix ios 17 phone
Signed-off-by: 82Flex <[email protected]>
1 parent 611c935 commit 3fb2821

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export PACKAGE_VERSION := 2.8
1+
export PACKAGE_VERSION := 3.0
22
export ARCHS := arm64 arm64e
33
export TARGET := iphone:clang:16.5:14.0
44
export GO_EASY_ON_ME := 1

Preferences/Resources/Root.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<key>displayName</key>
1515
<string>Alexandra</string>
1616
<key>username</key>
17-
<string>kaethchen</string>
17+
<string>rrk567301</string>
1818
<key>height</key>
1919
<integer>58</integer>
2020
</dict>

Tweak/Core/KayokoCore.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,12 @@ static void kayokoPaste() {
285285

286286
EnableKayokoDisablePasteTips();
287287

288-
MSHookMessageEx(objc_getClass("UIStatusBarWindow"), @selector(initWithFrame:),
288+
Class statusBarWindowCls = objc_getClass("UIStatusBarWindow");
289+
if (@available(iOS 17, *)) {
290+
statusBarWindowCls = objc_getClass("SBStatusBarWindow");
291+
}
292+
293+
MSHookMessageEx(statusBarWindowCls, @selector(initWithFrame:),
289294
(IMP)&override_UIStatusBarWindow_initWithFrame, (IMP *)&orig_UIStatusBarWindow_initWithFrame);
290295

291296
CFNotificationCenterAddObserver(

0 commit comments

Comments
 (0)