Contents

01000010x/SupaImageKit

SwiftUI async image loader + cache for Supabase Storage

Features

  • Loads images from Supabase Storage
  • Caches images locally
  • Shows placeholder while loading
  • 100% SwiftUI compatible

Usage

SupabaseImageView(
    imageName: image_name_or_path_in_bucket,
    bucketName: bucket_name,
    client: your_supabase_client_instance,
    cacheType: disk_or_memory (.disk or .memory)
) { image in
    image
        .resizable()
        .scaledToFit()
}

Missing things

  1. Image loading error management
  2. Adapt to use others downloaders (but maybe just use Nuke or KingFisher in this case)
  3. Add tests

Package Metadata

Repository: 01000010x/SupaImageKit

Stars: 1

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: MIT

README: README.md