andrewwiik / LittleX

iPhoneX features for Non-X Devices on iOS 11, also PiP and iPad Dock for all iOS 11 devices
55 stars 23 forks source link

Control center status bar #23

Open radiochild577 opened 6 years ago

radiochild577 commented 6 years ago

I was using the HomeGesture tweak prior to purchasing LittleX, and HomeGesture does not have the status bar bug in the control center. So I inspected that tweaks source code (https://github.com/VitaTaf/HomeGesture) and noticed that the developer included what appears to be the code for fixing the status bar bug for CC (also pasted below).

I love LittleX, and the status bar/control center bug is my only complaint. Any way you could include a fix for this in a future update? Thanks for the awesome tweak!

// Workaround for status bar transition bug

%hook CCUIOverlayStatusBarPresentationProvider

- (void)_addHeaderContentTransformAnimationToBatch:(id)arg1 transitionState:(id)arg2 {

                return;

}

%end

// Prevent status bar from flashing when invoking control center

%hook CCUIModularControlCenterOverlayViewController

- (void)setOverlayStatusBarHidden:(bool)arg1 {

                return;

}

%end

// Prevent status bar from displaying in fullscreen when invoking control center

%hook CCUIStatusBarStyleSnapshot

- (bool)isHidden {

                return YES;

}

%end
ghost commented 6 years ago

I have this issue, what do I do with the code? Where do I paste it?

MTayyabHanif commented 6 years ago

@lordzerowastaken @radiochild577 If you guys still having the issue you can use a tweak called "blackoutcc" Within setting toggle "remove status bar in cc" and toggle "enable" not sure if respring is required but won't hurt if you do. Cheers ;)