We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e025c0 commit 8a1e613Copy full SHA for 8a1e613
Examples/LocalDebugging/MyApp/MyApp/ContentView.swift
@@ -29,7 +29,7 @@ struct ContentView: View {
29
Button {
30
Task {
31
isLoading = true
32
- response = await register()
+ response = await self.register()
33
isLoading = false
34
}
35
} label: {
@@ -45,14 +45,14 @@ struct ContentView: View {
45
46
47
48
- .disabled(buttonDisabled)
+ .disabled(buttonDisabled || isLoading)
49
.opacity(buttonDisabled ? 0.5 : 1)
50
Text(response)
51
}.padding(100)
52
53
54
func register() async -> String {
55
- guard let url = URL(string: "http://localhost:9001/invoke") else {
+ guard let url = URL(string: "http://127.0.0.1:7000/invoke") else {
56
fatalError("invalid url")
57
58
var request = URLRequest(url: url)
0 commit comments