Skip to content
/ ImageMod Public

Modify and compose images with nice Swift syntax, perserve vector data

License

Notifications You must be signed in to change notification settings

trafi/ImageMod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Package Manager compatible

ImageMod

Modify and compose images with nice Swift syntax, perserve vector data.

Usage

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

Installation

Open your project in Xcode and select File > Swift Packages > Add Package Dependency. There enter https://github.com/trafi/ImageMod as the repository URL.