error: %hook inside a %hook

This commit is contained in:
Balackburn
2023-07-04 00:09:25 +02:00
parent 1e4826c3ac
commit 3b073b64c4

View File

@@ -186,7 +186,7 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) {
} }
%end %end
// Hide seperators // Hide separators
@interface YTCollectionSeparatorView (HiddenProperty) @interface YTCollectionSeparatorView (HiddenProperty)
@property (nonatomic, assign) BOOL hidden; @property (nonatomic, assign) BOOL hidden;
@end @end
@@ -204,6 +204,7 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) {
- (UIColor *)backgroundColor:(NSInteger)pageStyle { - (UIColor *)backgroundColor:(NSInteger)pageStyle {
return pageStyle == 1 ? [UIColor blackColor] : %orig; return pageStyle == 1 ? [UIColor blackColor] : %orig;
} }
%end
%hook YTHeaderViewController %hook YTHeaderViewController
- (UIColor *)backgroundColor:(NSInteger)pageStyle { - (UIColor *)backgroundColor:(NSInteger)pageStyle {