diff --git a/Sources/uYouPlusPatches.xm b/Sources/uYouPlusPatches.xm index 8ebd7c9..5b41be9 100644 --- a/Sources/uYouPlusPatches.xm +++ b/Sources/uYouPlusPatches.xm @@ -395,6 +395,17 @@ static void refreshUYouAppearance() { } %end +%hook YTPlayerViewController + + - (id)varispeedController { + id controller = %orig; + if (controller == nil && [self respondsToSelector:@selector(overlayManager)]) + controller = [self.overlayManager varispeedController]; + return controller; + } + + %end + %ctor { %init; if (IS_ENABLED(kGoogleSignInPatch)) {