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.
- Smart Caching: In-memory caching using
NSCacheto avoid redundant network requests. - Async/Await: Built on modern Swift concurrency for high performance.
- Skeleton Loading: Integrated with
SkeletonUIto provide beautiful shimmering placeholders. - Haptic Feedback: Subtle vibration on successful load using
HapticKit. - Zero Boilerplate: Use the
.ersanImage()modifier for effortless integration.
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)
}
}
}ErsanAsyncImage(
url: URL(string: "https://ersanq.com/logo.png"),
contentMode: .fit,
showSkeleton: true,
useHaptics: true
)
.frame(height: 300)Add this to your Package.swift:
.package(url: "https://github.com/ErsanQ/ImageKit", from: "1.0.0")MIT License.