SnackbarModifier

struct SnackbarModifier : ViewModifier

Adds a snackbar overlay to a view. Typically used with tier one (root tab views) containing views.

Lifecycle

Internal

  • Undocumented

    Declaration

    Swift

    @Binding
    var model: Snackbar? { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    var active: Bool { get }
  • Undocumented

    Declaration

    Swift

    var backgroundColor: Color { get }
  • Undocumented

    Declaration

    Swift

    var foregroundColor: Color { get }
  • Declaration

    Swift

    func body(content: Content) -> some View