A SwiftUI-oriented remote image caching system.


Documentation Swift

A double-cached (NSCache and local files) web image library for SwiftUI.

For API documentation, check the Wiki.


Using an image as a SwiftUI View

TImage(try? RemoteImage(stringURL: ""))
    .frame(width: 800, height: 1200, alignment: .center)

Preview Screenshot 1

Editing a remote image locally

let remoteImage = RemoteImage(stringURL: "https://my.original/image")
let aCroppedVersionOfTheImage: UIImage = ...

// Let's save the edited version
remoteImage["edited-1"] = aCroppedVersionOfTheImage

// We can use this image in Apple's Image View

// ... inside a SwiftUI body ...

    // The image can be set and recalled simply by using a subscript with a tag name
    Image(uiImage: remoteImage["edited-1"])


  • Easy setup
  • SwiftUI native
  • Lightweight and easy to understand
  • You can implement your own optimized caching system
  • Can be set to try to refresh cached images from the Internet after a certain period of time
  • Double cached (persistent and volatile)
  • Uses a shared cached folder (across all apps) by default


  • Swift Tools 5.3.0
View More Packages from this Author


  • None
Last updated: Thu Jul 13 2023 14:47:48 GMT-0900 (Hawaii-Aleutian Daylight Time)