Swift: Download a file

Examples

Download file

let data = try await supabase.storage
  .from("avatars")
  .download(path: "folder/avatar1.png")

Download file with transformations

let data = try await supabase.storage
  .from("avatars")
  .download(
    path: "folder/avatar1.png",
    options: TransformOptions(
      width: 100,
      height: 100,
      quality: 80
    )
  )