ReverseMask

Reverse the mask functionality in SwiftUI! ?

How to use

You can use the mask to “look through” the black background like so:

Color.black
    .reverseMask {
        // your view, like an image
    }

For details see the Example app.

Example

Example

GitHub

View Github