From 7170d2681ff4e025cbe7b50e6b32e12dc744cbb6 Mon Sep 17 00:00:00 2001 From: dayanch96 <38832025+dayanch96@users.noreply.github.com> Date: Tue, 18 Jul 2023 06:14:36 +0300 Subject: [PATCH] Continue button for notched devices --- Tweak.xm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tweak.xm b/Tweak.xm index 7192d98..71515fa 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -37,6 +37,7 @@ static inline NSString *LOC(NSString *key) { } } %end + // Replace (translate) old text to the new one %hook UILabel - (void)setText:(NSString *)text { @@ -105,7 +106,14 @@ static inline NSString *LOC(NSString *key) { } %end -// WelcomeVC stuff +// Continue button (mostly for notched devices) +%hook uYouWelcome +- (void)setButtonTitle:(id)arg1 { + %orig(arg1 = LOC(@"Continue")); +} +%end + +// Follow me on twitter %hook OBPrivacyLinkButton - (id)initWithCaption:(id)arg1 buttonText:(id)arg2 image:(id)arg3 imageSize:(CGSize)arg4 useLargeIcon:(BOOL)arg5 { return %orig(LOC(@"FollowMe"), arg2, arg3, arg4, arg5);