We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题:透明度为1页面pop到透明度为0页面时,转场动画未按照设置执行0.12s而是0.5s,且wrPopProgress计算有问题,导致0.12s到0.5s转场动画结束前,导航栏背景色并未完全变为预期的效果
The text was updated successfully, but these errors were encountered:
暂时将计算进度时小数点第一位后向上取整解决
static CGFloat wrPopDuration = 0.12; static int wrPopDisplayCount = 0; - (CGFloat)wrPopProgress { CGFloat all = 60 * wrPopDuration; int current = MIN(all, wrPopDisplayCount); CGFloat progress = current / all; return ceilf(progress * 10) / 10.f; } static CGFloat wrPushDuration = 0.10; static int wrPushDisplayCount = 0; - (CGFloat)wrPushProgress { CGFloat all = 60 * wrPushDuration; int current = MIN(all, wrPushDisplayCount); CGFloat progress = current / all; return ceilf(progress * 10) / 10.f; }
转场动画持续时间修改无效可能跟苹果动画效果改为usingSpringWithDamping有关
Sorry, something went wrong.
No branches or pull requests
问题:透明度为1页面pop到透明度为0页面时,转场动画未按照设置执行0.12s而是0.5s,且wrPopProgress计算有问题,导致0.12s到0.5s转场动画结束前,导航栏背景色并未完全变为预期的效果
![截屏2021-12-31 下午4 08 57](https://user-images.githubusercontent.com/20292611/147811426-6777ae4a-8e41-4060-a75a-0866cc825cc6.png)
![截屏2021-12-31 下午4 12 32](https://user-images.githubusercontent.com/20292611/147811620-1acc1e57-514d-42a7-8ac7-6f4590bddc17.png)
The text was updated successfully, but these errors were encountered: