ResizableVector

A cross-platform SwiftUI Image View for resizing vector files.

This solves an existing SwiftUI Image View issue where vector images have artifacts when significantly scaled.

Screen.Recording.2022-02-27.at.1.47.50.PM.mov


Links to related issues:

https://stackoverflow.com/questions/61164005/why-do-pdfs-resized-in-swiftui-getting-sharp-edges

https://stackoverflow.com/questions/57969823/xcode-11-pdf-image-assets-preserve-vector-data-not-working-in-swiftui

Installation

To add ResizableVector to your Xcode project, use the Swift Package Manager

Swift Package Manager

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/Matt54/ResizableVector.git

Developments

Pull requests are welcome ?

GitHub

View Github