We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1e202 commit 122eb70Copy full SHA for 122eb70
openai-async-image-swiftui-example/ContentView.swift
@@ -72,6 +72,7 @@ fileprivate struct RoundedTextFieldStyle: TextFieldStyle {
72
}
73
74
// Example function to handle the error
75
+// TODO: encapsulate it in the component
76
fileprivate func handleError(_ error: Error) -> String {
77
if case let Http.Errors.status(_, _, data) = error {
78
if let responseData = data, let responseString = String(data: responseData, encoding: .utf8) {
0 commit comments