Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.08k stars 1.38k forks source link

QMUINavigationController和Hero框架冲突,导致push之后pop回来 QMUIModalPresentationViewController的ContentView没有被正常显示 #1255

Open JzwOnly opened 3 years ago

JzwOnly commented 3 years ago

Bug 表现 使用情况:集成Hero框架实现转场动画,使用Hero设置QMUINavigationController.navigationAnimationType 表现: A页面以addSubview的形式添加QMUIModalPresentationViewController的contentView contentView中有一个按钮,相应A页面跳转到B页面

  1. 异常现象 点击导航栏的返回按钮返回A页面,contentView没有正常被显示,contentView所有子视图的backgroundColor变为clearColor
  2. 正常现象 右滑手势返回A页面,contentView正常显示

如何重现 附上测试Demo和视频

https://user-images.githubusercontent.com/21191349/120579989-f5827380-c45a-11eb-8355-cd423ed35d54.MP4

ModalTest.zip

其他信息