質問編集履歴
1
コードを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -87,3 +87,29 @@
|
|
87
87
|
|
88
88
|
|
89
89
|
原因が全くわからず困っています、2つのレイヤーでアニメーションをさせる際に何か処理が必要なのでしょうか?
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
## ※追記
|
96
|
+
|
97
|
+
expandAnimateメソッドの中身はこんな感じです
|
98
|
+
|
99
|
+
```
|
100
|
+
|
101
|
+
private func expandAnimate(end: CGPath?, duration: Double,biginTime: Double) -> CABasicAnimation {
|
102
|
+
|
103
|
+
let basicAnimation = CABasicAnimation(keyPath: "path")
|
104
|
+
|
105
|
+
basicAnimation.toValue = end
|
106
|
+
|
107
|
+
basicAnimation.duration = duration
|
108
|
+
|
109
|
+
basicAnimation.beginTime = biginTime
|
110
|
+
|
111
|
+
return basicAnimation
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
```
|