File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Examples/LocalDebugging/MyApp/MyApp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ struct ContentView: View {
29
29
Button {
30
30
Task {
31
31
isLoading = true
32
- response = await register ( )
32
+ response = await self . register ( )
33
33
isLoading = false
34
34
}
35
35
} label: {
@@ -45,14 +45,14 @@ struct ContentView: View {
45
45
}
46
46
}
47
47
}
48
- . disabled ( buttonDisabled)
48
+ . disabled ( buttonDisabled || isLoading )
49
49
. opacity ( buttonDisabled ? 0.5 : 1 )
50
50
Text ( response)
51
51
} . padding ( 100 )
52
52
}
53
53
54
54
func register( ) async -> String {
55
- guard let url = URL ( string: " http://localhost:9001 /invoke " ) else {
55
+ guard let url = URL ( string: " http://127.0.0.1:7000 /invoke " ) else {
56
56
fatalError ( " invalid url " )
57
57
}
58
58
var request = URLRequest ( url: url)
You can’t perform that action at this time.
0 commit comments