Temp: disable UIFocusSystem

This commit is contained in:
Isaac 2023-12-29 12:34:46 +04:00
parent c034423156
commit a90b24e13c

View File

@ -161,6 +161,18 @@ static bool notyfyingShiftState = false;
@end @end
@interface UIFocusSystem (Telegram)
@end
@implementation UIFocusSystem (Telegram)
- (void)_65087dc8_updateFocusIfNeeded {
//TODO:Re-enable
}
@end
@implementation UIViewController (Navigation) @implementation UIViewController (Navigation)
+ (void)load + (void)load
@ -183,6 +195,8 @@ static bool notyfyingShiftState = false;
} else if (@available(iOS 15.0, *)) { } else if (@available(iOS 15.0, *)) {
[RuntimeUtils swizzleInstanceMethodOfClass:[CADisplayLink class] currentSelector:@selector(setPreferredFrameRateRange:) newSelector:@selector(_65087dc8_setPreferredFrameRateRange:)]; [RuntimeUtils swizzleInstanceMethodOfClass:[CADisplayLink class] currentSelector:@selector(setPreferredFrameRateRange:) newSelector:@selector(_65087dc8_setPreferredFrameRateRange:)];
} }
[RuntimeUtils swizzleInstanceMethodOfClass:[UIFocusSystem class] currentSelector:@selector(updateFocusIfNeeded) newSelector:@selector(_65087dc8_updateFocusIfNeeded)];
}); });
} }