Browse Source

a safer way to hide the CC grabber

pull/1/head
Viggo Lekdorf 4 years ago
parent
commit
6e661015cf
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      Tweak.x

+ 9
- 4
Tweak.x View File

@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


%end %end


%hook SBDashBoardTeachableMomentsContainerView
-(void)_addControlCenterTutors {
// Nothing here to prevent the cc grabber from showing
%hook CSTeachableMomentsContainerView
- (void)layoutSubviews {
[self.controlCenterGrabberView setHidden:YES];
return %orig;
} }
%end
%end

Loading…
Cancel
Save