Skip to content

Commit 122eb70

Browse files
committed
Update ContentView.swift
1 parent fc1e202 commit 122eb70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openai-async-image-swiftui-example/ContentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fileprivate struct RoundedTextFieldStyle: TextFieldStyle {
7272
}
7373

7474
// Example function to handle the error
75+
// TODO: encapsulate it in the component
7576
fileprivate func handleError(_ error: Error) -> String {
7677
if case let Http.Errors.status(_, _, data) = error {
7778
if let responseData = data, let responseString = String(data: responseData, encoding: .utf8) {

0 commit comments

Comments
 (0)