InputBuilder

@objcMembers public final class InputBuilder: NSObject

Builder for creating Input instances.

  • The type (value, statement, dummy) of the Input.

    Declaration

    Swift

    public var type: Input.InputType
  • The type checks for the connection of this Input. Defaults to [String]?.

    Declaration

    Swift

    public var connectionTypeChecks: [String]?
  • The name of the Input.

    Declaration

    Swift

    public var name: String
  • Specifies whether this Input is visible. Defaults to true.

    Declaration

    Swift

    public var visible: Bool = true
  • Specifies the alignment for the Input. Defaults to Input.Alignment.Left.

    Declaration

    Swift

    public var alignment: Input.Alignment = Input.Alignment.left
  • A list of Field objects for the Input. Defaults to [].

    Declaration

    Swift

    public fileprivate(set) var fields: [Field] = []
  • Initializes an input builder with a type and string.

    Declaration

    Swift

    public init(type: Input.InputType, name: String)
  • Initialize a builder from an existing input. All values that are not specific to a single instance of a input will be copied in to the builder. Any associated layouts are not copied into the builder.

    Declaration

    Swift

    public init(input: Input)
  • Creates a new Input given the current state of the builder.

    Declaration

    Swift

    public func makeInput() -> Input

    Return Value

    A new input

  • Appends a copy of a field to fields.

    Declaration

    Swift

    public func appendField(_ field: Field)
  • Appends a copies of fields to fields.

    Declaration

    Swift

    public func appendFields(_ fields: [Field])