回答編集履歴

1

.

2020/09/16 05:01

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -9,3 +9,15 @@
9
9
  return TimerView(setDate: toDate!)
10
10
 
11
11
  ```
12
+
13
+
14
+
15
+ ---
16
+
17
+ ローカル変数使わなければ`return`が無くてもいいです。
18
+
19
+ ```swift
20
+
21
+ TimerView(setDate: Calendar.current.date(byAdding:.minute, value: time, to:Date())!)
22
+
23
+ ```