CreationKit Documentation

Structure Form​Configuration

public struct FormConfiguration  

A type to configure a FormViewController.

You can use this type to configure many things on a form such as how the action button is displayed in the form.

Nested Types

FormConfiguration.ActionButtonStyle

Styles that the Form can support.

FormConfiguration.TextInputConfiguration
FormConfiguration.DateInputConfiguration

Initializers

init(action​Button​Style:​action​Button​Title:​action​Button​Tapped:​)

public init(actionButtonStyle: ActionButtonStyle, actionButtonTitle: String = "Save", actionButtonTapped: @escaping (() -> Void))  

Properties

action​Button​Style

public private(set) var actionButtonStyle: ActionButtonStyle

The style the Form will use to display the action button.

action​Button​Title

public var actionButtonTitle: String = "Save"

The title of the action button.

action​Button​Tapped

public var actionButtonTapped: () -> Void

The closure that is called when the action button is tapped.