質問編集履歴
2
記事タイトル改善
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
画面遷移時に値渡しをする方法
|
test
CHANGED
File without changes
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
struct ContentView: View {
|
20
20
|
|
21
|
-
@State var
|
21
|
+
@State var objects = ["●","●","●"]
|
22
22
|
|
23
23
|
@State var ShowFlag = [false,false,false]
|
24
24
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
var body: some View {
|
28
28
|
|
29
|
-
ForEach(0..<self.
|
29
|
+
ForEach(0..<self.objects.count, id: .self){ n in
|
30
30
|
|
31
31
|
Button(action: {
|
32
32
|
|