Skip to content

Commit

Permalink
add example for info method call
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Sep 24, 2024
1 parent 5d85aea commit 433f36b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Examples/Examples/Storage/FileObjectDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ struct FileObjectDetailView: View {
} catch {}
}
}

Button("Get info") {
Task {
do {
let info = try await api.info(path: fileObject.name)
lastActionResult = ("info", info)
} catch {}
}
}
}

if let lastActionResult {
Expand Down

0 comments on commit 433f36b

Please sign in to comment.