DialogViewWithSingleButton

struct DialogViewWithSingleButton : View

Creates a dialog view with a single button.

  • Title of the dialog

    Declaration

    Swift

    var title: String
  • Message of the dialog

    Declaration

    Swift

    var message: String
  • The title of the button

    Declaration

    Swift

    var buttonTitle: String
  • Bool value to indicate if the dialog is active or not

    Declaration

    Swift

    @Binding
    var isActive: Bool { get nonmutating set }
  • A closure to be called when the button is tapped.

    Declaration

    Swift

    var onTapButton: () -> Void
  • Declaration

    Swift

    var body: some View { get }