mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-08-18 18:15:35 +00:00
YTHidePlayerButtons 1.0.1
This commit is contained in:
parent
d265c900a1
commit
700c8babcf
1 changed files with 13 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ static int getNotificationIconStyle() {
|
|||
%end
|
||||
%end
|
||||
|
||||
// YTHidePlayerButtons 1.0.0 - made by @aricloverEXTRA
|
||||
// YTHidePlayerButtons 1.0.1 - v20.02.3+ - made by @aricloverEXTRA
|
||||
static NSDictionary<NSString *, NSString *> *HideToggleMap(void) {
|
||||
static NSDictionary<NSString *, NSString *> *map = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
|
|
@ -205,6 +205,18 @@ static BOOL inspectAndHideIfMatch(id view) {
|
|||
}
|
||||
return NO;
|
||||
}
|
||||
static void removeViewFromSuperview(id view) {
|
||||
if (!view) return;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
@try {
|
||||
if ([view respondsToSelector:@selector(removeFromSuperview)]) {
|
||||
[view removeFromSuperview];
|
||||
}
|
||||
} @catch (NSException *ex) {
|
||||
NSLog(@"[HidePlayerButtons] removeFromSuperview exception: %@", ex);
|
||||
}
|
||||
});
|
||||
}
|
||||
static void traverseAndHideViews(UIView *root) {
|
||||
if (!root) return;
|
||||
@try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue