Skip to content

mrenty/SpotlightView

Repository files navigation

SpotlightView

iOS macOS Platforms Swift Package Manager

This package provides a View extension to create an animated intro/walkthrough for your app.

Steps

  1. 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
  1. Add the overlay to your view
.addSpotlightOverlay(show: $showSpotlight, currentSpot: $currentSpot)
.onAppear {
    showSpotlight = true
}
  1. Add the spotlights to your app
.addSpotlight(0, shape: .rounded, roundedRadius: 10, text: "Step one")

Shape

There are currently 3 supported shapes:

  • circle
  • rectangle
  • rounded

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages