Modify and compose images with nice Swift syntax, perserve vector data.
Just chain operations and call .image
to retrieve final UIImage
.
let niceImage = UIImage(named: "uglyImage")?
.tinted(.blue)
.padded(by: 10)
.scaled(width: 50)
.zStack(coolImage)
.image
Open your project in Xcode and select File > Swift Packages > Add Package Dependency. There enter https://github.com/trafi/ImageMod
as the repository URL.