質問編集履歴

2

記事タイトル改善

2021/06/30 07:39

投稿

ioli
ioli

スコア12

test CHANGED
@@ -1 +1 @@
1
- SwiftUIおけるView間での値渡し
1
+ 画面遷移時に値渡しをする方法
test CHANGED
File without changes

1

誤字

2021/06/30 07:39

投稿

ioli
ioli

スコア12

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  struct ContentView: View {
20
20
 
21
- @State var number = ["●","●","●"]
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.number.count, id: .self){ n in
29
+ ForEach(0..<self.objects.count, id: .self){ n in
30
30
 
31
31
  Button(action: {
32
32