-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cephei breaks navigationBar.barTintColor
and other properties of non Cephei Preference Bundles
#56
Comments
Thanks for reporting. Which iOS version is this on? I think this should only be possible on iOS 12 and older, because on iOS 13+ Cephei uses the much nicer public API for this rather than the hacky stuff it used to do. Though it’s possible some of that old logic is still applying to iOS 13+ for some reason, or perhaps we override the bar appearance properties when we aren’t meant to. |
It could possibly also have something to do with SkittyPrefs using the old approach (setting properties on navigationBar directly) rather than the modern iOS 13+ approach (setting UINavigationBarAppearance properties on the navigationItem, see here for the exact logic Cephei uses). |
Hey @kirb! I am experiencing this issue on an iPhone 11 Pro on iOS 14.3 (Taurine Jailbreak). |
Wait, I might have something here. |
Hey @kirb, any new progress or intel so far? |
I can now say for certain, that the existente of
It is now up to you to decide which option seems to be the most rational ☺. |
Thanks heaps for confirming. I do feel we should all be migrating to the modern APIs, so I’d rather not be downgrading back to the old method in Cephei. The old way was awful, Cephei makes a few hooks to make that work better than it does even in App Store apps, but I don’t want to rely on that going forward. It’s worth me going over all of the appearance logic and making sure any changes only apply when an appearance settings object has been set. Just quickly re-reading Tint.x right now I already spotted a bug that when the appearance settings is nil, it falls back to a clean HBAppearanceSettings object, which then overrides |
Sounds great! |
Thanks again for posting this! I’ll reopen it so I have something to track progress of reviewing the tint logic. |
Good evening!
This is the current situation: If an user opens a preference bundle which is powered by Cephei and then opens another preference bundle which also modifies
navigationBar
properties (likebarTintColor
,translucent
andshadowImage
) then these properties get overwritten by Cephei. I found an example of this in the wild in Skitties tweakSix (LS)
. Additionally you can also check out how Skitty sets thebarTintColor
here.It does not seem like this is caused by a specific Cephei version since Cephei 1.15.1 also has the same breaking effects. Could you please fix this behaviour so that other peoples code doesn't break 😊
Thank you!
The text was updated successfully, but these errors were encountered: