質問編集履歴
2
ForEach.initの.initを省略。
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
List {
|
96
96
|
|
97
|
-
ForEach
|
97
|
+
ForEach(self.data.array) { sample in
|
98
98
|
|
99
99
|
Text(sample.value)
|
100
100
|
|
1
ForEach.initの.initを省略。
test
CHANGED
File without changes
|
test
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
List {
|
112
112
|
|
113
|
-
ForEach
|
113
|
+
ForEach(self.data.array.indices) { index in
|
114
114
|
|
115
115
|
Text(data.array[index].value)
|
116
116
|
|