We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f3061 commit a3b747dCopy full SHA for a3b747d
1 file changed
next/kmp/app/iosApp/DwebBrowser/DwebBrowser/Desktop/EdgeAnimationView.swift
@@ -66,6 +66,9 @@ class EdgeAnimationView: UIView {
66
super.layoutSubviews()
67
// 更新layer的路径
68
var indexWidth = Int(self.frame.width)
69
+ if indexWidth == 0 {
70
+ return
71
+ }
72
if indexWidth >= cachedPaths.count{
73
indexWidth = cachedPaths.count-1
74
}
@@ -130,7 +133,7 @@ class EdgeAnimationView: UIView {
130
133
131
134
// 确保动画完成后才释放
132
135
animator?.addCompletion { position in
- if position == .end {
136
+ if position == .end && self.animator == animator {
137
self.animator = nil
138
139
0 commit comments