回答編集履歴
1
インデントの訂正
test
CHANGED
@@ -20,13 +20,11 @@
|
|
20
20
|
|
21
21
|
animateLabal.layer.timeOffset = pausedTime
|
22
22
|
|
23
|
+
}
|
23
24
|
|
24
25
|
|
25
|
-
}
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
func restartAnimation(){
|
30
28
|
|
31
29
|
let pausedTime = animateLabal.layer.timeOffset
|
32
30
|
|
@@ -40,11 +38,11 @@
|
|
40
38
|
|
41
39
|
animateLabal.layer.beginTime = timeSincePause
|
42
40
|
|
43
|
-
|
41
|
+
}
|
44
42
|
|
45
43
|
|
46
44
|
|
47
|
-
|
45
|
+
override func viewDidAppear(_ animated: Bool) {
|
48
46
|
|
49
47
|
super.viewDidAppear(animated)
|
50
48
|
|
@@ -62,16 +60,14 @@
|
|
62
60
|
|
63
61
|
}
|
64
62
|
|
63
|
+
}
|
65
64
|
|
66
65
|
|
66
|
+
|
67
|
-
|
67
|
+
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
68
68
|
|
69
69
|
stopAnimation()
|
70
70
|
|
71
|
-
|
71
|
+
}
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
}
|
76
72
|
|
77
73
|
```
|