LabelCollector

public class LabelCollector : Collector, @unchecked Sendable

Class representing a LABEL type. It conforms to the Collector protocol and displays a label on the form.

  • id

    The UUID of the field collector.

    Declaration

    Swift

    public var id: String { get }
  • The label content.

    Declaration

    Swift

    public private(set) var content: String { get }
  • Initializes a new instance of LabelCollector.

    Declaration

    Swift

    public required init(with json: [String : Any])

    Parameters

    json

    The json to initialize from.

  • Initializes the LabelCollector with the given value. The LabelCollector does not hold any value.

    Declaration

    Swift

    public func initialize(with value: Any)

    Parameters

    input

    The value to initialize the collector with.

  • Function returning the Payload of the LabelCollector. This is a function that returns Never as a nonreturning function as the LabelCollector has no payload to return.

    Declaration

    Swift

    public func payload() -> Never?