Skip to content

Rasterize SwiftUI views into bitmap images.

License

Notifications You must be signed in to change notification settings

alexito4/Raster

Repository files navigation

Raster

CI Mac

Rasterize a SwiftUI view into an image.

testExample.1

How to use

import Raster

let view = ... any SwiftUI view
let image = view.rasterize(at: size)

Installation

dependencies: [
   .package(url: "https://github.com/alexito4/Raster.git", from: "0.0.1")
],
...
.target(
    dependencies: [
        "Raster"
    ],
),

Author

Alejandro Martinez | http://alejandromp.com | @alexito4

About

Rasterize SwiftUI views into bitmap images.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages