mirror of
https://github.com/exoticswingset/DualSBAdoption.git
synced 2025-07-01 06:06:47 +00:00
a safer way to hide the CC grabber
This commit is contained in:
13
Tweak.x
13
Tweak.x
@ -1,3 +1,7 @@
|
|||||||
|
@interface CSTeachableMomentsContainerView { }
|
||||||
|
@property (nonatomic,retain) UIView * controlCenterGrabberView;
|
||||||
|
@end
|
||||||
|
|
||||||
%hook UIStatusBar_Modern
|
%hook UIStatusBar_Modern
|
||||||
-(void)setAlpha:(CGFloat)arg1 {
|
-(void)setAlpha:(CGFloat)arg1 {
|
||||||
%orig(0.0); // makes status bar transparent on lock screen
|
%orig(0.0); // makes status bar transparent on lock screen
|
||||||
@ -5,8 +9,9 @@
|
|||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook SBDashBoardTeachableMomentsContainerView
|
%hook CSTeachableMomentsContainerView
|
||||||
-(void)_addControlCenterTutors {
|
- (void)layoutSubviews {
|
||||||
// Nothing here to prevent the cc grabber from showing
|
[self.controlCenterGrabberView setHidden:YES];
|
||||||
|
return %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
Reference in New Issue
Block a user