Skip to content

vapor-pawelw/HighlightOverlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

HighlightOverlay

Puts a darker background over your SwiftUI Views with a mask that cuts out a hole for your currently selected view.

Selected view can be chosen by specifying an identifier for your view via modifier.
It is then passed to withHighlightOverlay as a binding.

The view coordinates are then tracked using PreferenceKey to maintain correct position for the cutout.

Example:

Nagranie.z.ekranu.2023-04-6.o.10.04.10.mov

Black circle has an empty identifier which is used to remove the overlay.
This example contains an animation for the highlight which can be easily removed if needed.

About

Highlight Overlay for SwiftUI views

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages