Skip to content

ErsanQ/ImageKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageKit

Cached, asynchronous image loading with premium SwiftUI effects — no boilerplate required.

ImageKit is a high-performance image loading solution for the ErsanQ ecosystem. It combines Async/Await networking with NSCache and premium UI components like SkeletonUI and HapticKit.

✨ Features

  • Smart Caching: In-memory caching using NSCache to avoid redundant network requests.
  • Async/Await: Built on modern Swift concurrency for high performance.
  • Skeleton Loading: Integrated with SkeletonUI to provide beautiful shimmering placeholders.
  • Haptic Feedback: Subtle vibration on successful load using HapticKit.
  • Zero Boilerplate: Use the .ersanImage() modifier for effortless integration.

🚀 Quick Start

Simple Image Loading

import ImageKit

struct ProfileView: View {
    var body: some View {
        VStack {
            // One-line image loading
            AsyncImage(url: URL(string: "https://example.com/photo.jpg"))
                .ersanImage(contentMode: .fill)
                .frame(width: 200, height: 200)
        }
    }
}

Advanced Usage (ErsanAsyncImage)

ErsanAsyncImage(
    url: URL(string: "https://ersanq.com/logo.png"),
    contentMode: .fit,
    showSkeleton: true,
    useHaptics: true
)
.frame(height: 300)

🛠️ Installation

Add this to your Package.swift:

.package(url: "https://github.com/ErsanQ/ImageKit", from: "1.0.0")

📄 License

MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages