Skip to content
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

关于适应系统dark mode的问题 #1559

Open
pcccccc opened this issue Jul 18, 2024 · 0 comments
Open

关于适应系统dark mode的问题 #1559

pcccccc opened this issue Jul 18, 2024 · 0 comments

Comments

@pcccccc
Copy link

pcccccc commented Jul 18, 2024

QMUI 版本: 4.7.0

测试机型: iPhone 15 Pro Max 模拟器

系统: 17.5

操作步骤:

1、集成QMUI与QMUI_Demo皮肤相关组件,并将respondsSystemStyleAutomatically设置为YES。

2、打开App。

3、通过系统切换模式。

4、返回App切换TabbarItem或进入二级页面,导航栏颜色异常。

疑问点:

debug后发现由于系统进入后台,导致 QMUIConfiguration.m line: 479 QMUIHelper.canUpdateAppearance 值为NO,无法正确调用 UINavigationBar.qmui_appearanceConfigured.barStyle = navBarStyle;

跟踪发现 QMUIHelper.sharedInstance.shouldPreventAppearanceUpdating 是通过App是否进入后台进行判断,但是这样进入后台的情况下切换系统皮肤、或APP进入后台时,用户手动开启了自动切换深色模式开关时,QMUI是不是就没法正确设置barStyle了呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant