SnapCarousel

struct SnapCarousel : View

A snapping carousel view used for the onboarding experience for dIM.

It works as a few slides of short explanatory slides giving users a first impression of what dIM is and how it works.

  • UIStateModel keeps track of the active card in the carousel.

    Declaration

    Swift

    @EnvironmentObject
    var UIState: UIStateModel { get }
  • Detect if the system is light or dark and update UI accordingly.

    Declaration

    Swift

    @Environment
    var colorScheme: ColorScheme { get }
  • Used to open URLS by pressing the Read More button.

    Declaration

    Swift

    @Environment
    var openURL: OpenURLAction { get }
  • Declaration

    Swift

    var body: some View { get }