Swift: Retrieve public URL

Examples

Returns the URL for an asset in a public bucket

let publicURL = try supabase.storage
  .from("public-bucket")
  .getPublicURL(path: "folder/avatar1.png")

Returns the URL for an asset in a public bucket with transformations

let publicURL = try supabase.storage
  .from("public-bucket")
  .getPublicURL(
    path: "folder/avatar1.png",
    options: TransformOptions(
      width: 100,
      height: 100
    )
  )

Returns the URL which triggers the download of an asset in a public bucket

let publicURL = try supabase.storage
  .from("public-bucket")
  .getPublicURL(
    path: "folder/avatar1.png",
    download: true
  )