This package provides a View extension to create an animated intro/walkthrough for your app.
- Create a state var for the current step and whether or not to show the walkthrough
@State var showSpotlight: Bool = false
@State var currentSpot: Int = 0
- Add the overlay to your view
.addSpotlightOverlay(show: $showSpotlight, currentSpot: $currentSpot)
.onAppear {
showSpotlight = true
}
- Add the spotlights to your app
.addSpotlight(0, shape: .rounded, roundedRadius: 10, text: "Step one")
There are currently 3 supported shapes:
circlerectanglerounded