Open XWXGitHub opened 2 years ago
我也遇到了这个问题,请问你现在解决了没
某些情况下iPhone正常,iPad会崩溃
把 finish cancel 等操加个 DispatchQueue.main.async { } ,可以解决问题
把 finish cancel 等操加个 DispatchQueue.main.async { } ,可以解决问题
谢谢分享,以后再用遇到试试
我也遇到这个问题了,我是push到次级页面,实现手势下拉返回,有一定几率页面卡死
What did you do?
从一级页面present到二级页面时,在二级页面实现 view.hero.id = **** self.isHeroEnabled = true 并且还在二级页面设置UIPanGestureRecognizer侧滑手势,
@objc func slide(pan: UIPanGestureRecognizer) { let translationX = pan.translation(in: pan.view).x if translationX > 0 { // 向右平移滑动 let progress = translationX / (ScreenW / 3) switch pan.state { case .began: dismiss(animated: true) case .changed: Hero.shared.update(progress)
What did you expect to happen?
我以为能够正常侧滑返回一级页面.
What happened instead?
最后发现slide方法正常执行,但侧滑功能失效,然后返回一级页面时整个APP就卡死了. 然而不知道为什么模拟器测试是没有任何问题一切正常.
General Information
Hero Version:
iOS Version(s): 14.0
Swift Version: 5.4.2
Devices/Simulators: Devices
Reproducible in Examples? (Yes/No): NO
Demo Project