-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathiOS10BlurRemoval.x
executable file
·40 lines (35 loc) · 989 Bytes
/
iOS10BlurRemoval.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import "Headers.h"
%group BlurRemoval
%hook SBFolderContainerView
- (void)layoutSubviews {
[[self backgroundView] setAlpha:0];
%orig;
}
%end
%hook SBFolderIconZoomAnimator
- (instancetype)initWithOuterController:(SBFolderController *)outerController innerController:(SBFolderController *)innerController folderIcon:(SBFolderIcon *)folderIcon {
return nil;
}
%end
%end
%group BlurRemoval13
//iOS 13
%hook SBFolderController
-(void)viewWillTransitionToSize:(CGSize)arg2 forOperation:(NSInteger)operation withTransitionCoordinator:(id)coordinator {
%orig;
SBIconView *iconView = [self folderIconView];
if ([iconView respondsToSelector:@selector(setAllIconElementsButLabelToHidden:)])
[iconView setAllIconElementsButLabelToHidden:NO];
else
[iconView setAllIconElementsButLabelHidden:NO];
}
%end
%end
%ctor {
if ([[CSClassicFolderSettingsManager sharedInstance] enabled]){
if (kCFCoreFoundationVersionNumber >= 1600){
%init(BlurRemoval);
%init(BlurRemoval13);
}
}
}