Skip to content

Commit 8a1e613

Browse files
committed
Minor fix
1 parent 6e025c0 commit 8a1e613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Examples/LocalDebugging/MyApp/MyApp/ContentView.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ContentView: View {
2929
Button {
3030
Task {
3131
isLoading = true
32-
response = await register()
32+
response = await self.register()
3333
isLoading = false
3434
}
3535
} label: {
@@ -45,14 +45,14 @@ struct ContentView: View {
4545
}
4646
}
4747
}
48-
.disabled(buttonDisabled)
48+
.disabled(buttonDisabled || isLoading)
4949
.opacity(buttonDisabled ? 0.5 : 1)
5050
Text(response)
5151
}.padding(100)
5252
}
5353

5454
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 {
5656
fatalError("invalid url")
5757
}
5858
var request = URLRequest(url: url)

0 commit comments

Comments
 (0)