質問編集履歴
2
内容編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,11 +84,11 @@
|
|
84
84
|
|
85
85
|
VStack{
|
86
86
|
|
87
|
-
Text("The first number:(appState.firstNumber!.firstNumber)") // 10 -> 20
|
87
|
+
Text("The first number:(appState.firstNumber!.firstNumber)") // 1.2の動作後10を表示 -> 3の動作後20を表示
|
88
88
|
|
89
89
|
Divider()
|
90
90
|
|
91
|
-
Text("The total number:(totalNumber)") // 30 -> 30
|
91
|
+
Text("The total number:(totalNumber)") // 1.2の動作後30を表示 -> 3の動作後30を表示(40と表示したい)
|
92
92
|
|
93
93
|
}
|
94
94
|
|
@@ -114,13 +114,15 @@
|
|
114
114
|
|
115
115
|
} .onAppear(){
|
116
116
|
|
117
|
-
appState.getFirstNumber()
|
117
|
+
appState.getFirstNumber() // 1の動作
|
118
|
+
|
119
|
+
|
118
120
|
|
119
121
|
appState.getTotalNumber(firstNumber: appState.firstNumber!.firstNumber, total: {returnData in
|
120
122
|
|
121
123
|
self.totalNumber = returnData
|
122
124
|
|
123
|
-
})
|
125
|
+
}) //2の動作
|
124
126
|
|
125
127
|
}
|
126
128
|
|
@@ -504,7 +506,7 @@
|
|
504
506
|
|
505
507
|
isFinish = returnData
|
506
508
|
|
507
|
-
}
|
509
|
+
} // 3の動作
|
508
510
|
|
509
511
|
)
|
510
512
|
|
1
内容編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,11 +84,11 @@
|
|
84
84
|
|
85
85
|
VStack{
|
86
86
|
|
87
|
-
Text("The first number:(appState.firstNumber!.firstNumber)") // 10 ->
|
87
|
+
Text("The first number:(appState.firstNumber!.firstNumber)") // 10 -> 20
|
88
88
|
|
89
89
|
Divider()
|
90
90
|
|
91
|
-
Text("The total number:(totalNumber)") // 30 ->
|
91
|
+
Text("The total number:(totalNumber)") // 30 -> 30
|
92
92
|
|
93
93
|
}
|
94
94
|
|