AsyncImageRenderer

Badge Badge Badge - Version Badge - Swift Package Manager Badge - Platform Badge - Platform Badge - Platform Badge - Platform Badge - License

For ImageRenderer included in SwiftUI, scale is set to 1. It’s very blurry. Fixed this.

AsyncImageRenderer ImageRenderer
Image Image
Fixed Original

Example

import AsyncImageRenderer

Task {
  if let renderedImage = await AsyncImageRenderer.image(ContentView())
    // 
  }
}

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/swift-man/AsyncImageRenderer.git", .from: "0.5.0")
]

GitHub

View Github