AlertStyleBuilder

public final class AlertStyleBuilder
extension NatDialogController.AlertStyleBuilder: NatDialogBuilder
extension NatDialogController.AlertStyleBuilder: NatDialogTitleConfigurable
extension NatDialogController.AlertStyleBuilder: NatDialogBodyConfigurable
extension NatDialogController.AlertStyleBuilder: NatDialogDismissableConfigurable
extension NatDialogController.AlertStyleBuilder: NatDialogDividerConfigurable
extension NatDialogController.AlertStyleBuilder: NatDialogCompletionHandlerConfigurable

AlertStyleBuilder is one of the styles available for NatDialogController component.

       Example of usage:
            let dialog = NatDialogController
            .standardStyleBuilder
            .configure(...)
            .build()

NatDialogBuilder

Public methods

  • Configures the primary button text and action for the Dialog

    Declaration

    Swift

    @discardableResult
    public func configure(primaryButtonTitle title: String, theme newTheme: AvailableTheme = .none, withAction action: @escaping () -> Void) -> Self

    Parameters

    title

    a String to be displayed as the button title

    action

    the block of code to be executed when the button is tapped

  • Configures the secondary button text and action for the Dialog

    Declaration

    Swift

    @discardableResult
    public func configure(secondaryButtonTitle title: String, theme newTheme: AvailableTheme = .none, withAction action: @escaping () -> Void) -> Self

    Parameters

    title

    a String to be displayed as the button title

    action

    the block of code to be executed when the button is tapped