Skip to content

A SwiftUI Image View for artifact free resizing of vector files

Notifications You must be signed in to change notification settings

Matt54/ResizableVector

Repository files navigation

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 :)

About

A SwiftUI Image View for artifact free resizing of vector files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages