hiding broken YTCinematicContainerView

This commit is contained in:
Balackburn
2023-07-09 14:51:57 +02:00
parent b5955efa8b
commit 5d07edfee4

View File

@@ -91,6 +91,12 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) {
} }
%end %end
%hook YTCinematicContainerView
- (void)setHidden:(BOOL)arg1 {
%orig(YES);
}
%end
%hook YTCollectionViewController %hook YTCollectionViewController
- (UIColor *)backgroundColor:(NSInteger)pageStyle { - (UIColor *)backgroundColor:(NSInteger)pageStyle {
return pageStyle == 1 ? customColor : %orig; return pageStyle == 1 ? customColor : %orig;
@@ -432,12 +438,9 @@ UIColor* raisedColor = [UIColor blackColor];
// Hide separators // Hide separators
%hook YTCollectionSeparatorView %hook YTCollectionSeparatorView
%property (nonatomic, assign, setter=setHidden:) BOOL hidden; - (void)setHidden:(BOOL)arg1 {
%orig(YES);
- (void)setHidden:(BOOL)hidden {
%orig(hidden);
} }
%end %end
%hook YTELMView %hook YTELMView