Skip to content

Commit 433f36b

Browse files
committed
add example for info method call
1 parent 5d85aea commit 433f36b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Examples/Examples/Storage/FileObjectDetailView.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ struct FileObjectDetailView: View {
4545
} catch {}
4646
}
4747
}
48+
49+
Button("Get info") {
50+
Task {
51+
do {
52+
let info = try await api.info(path: fileObject.name)
53+
lastActionResult = ("info", info)
54+
} catch {}
55+
}
56+
}
4857
}
4958

5059
if let lastActionResult {

0 commit comments

Comments
 (0)