StandardStyleBuilder
public final class StandardStyleBuilder
extension NatDialogController.StandardStyleBuilder: NatDialogBuilder
extension NatDialogController.StandardStyleBuilder: NatDialogTitleConfigurable
extension NatDialogController.StandardStyleBuilder: NatDialogBodyConfigurable
extension NatDialogController.StandardStyleBuilder: NatDialogCustomBodyConfigurable
extension NatDialogController.StandardStyleBuilder: NatDialogDismissableConfigurable
extension NatDialogController.StandardStyleBuilder: NatDialogDividerConfigurable
extension NatDialogController.StandardStyleBuilder: NatDialogCompletionHandlerConfigurable
StandardStyleBuilder is one of the styles available for NatDialogController component.
Example of usage:
let dialog = NatDialogController
.standardStyleBuilder
.configure(...)
.build()
-
Undocumented
Declaration
Swift
public let viewModel: NatDialogController.ViewModel
-
Undocumented
Declaration
Swift
public var buttonsConfiguration: (primary: DialogButtonConfiguration?, secondary: DialogButtonConfiguration?)
-
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