FieldNumberLayout

@objcMembers open class FieldNumberLayout: FieldLayout

Class for a FieldNumber-based Layout.

  • The current text value that should be used to render the FieldNumber. This value is automatically set to self.fieldNumber.textValue on initialization and whenever setValueFromLocalizedText(:) is called. However, it can be set to any value outside of these calls (e.g. for temporary input purposes).

    Declaration

    Swift

    open var currentTextValue: String
  • The minimum value of this number field. If nil, it is unconstrained by a minimum value.

    Declaration

    Swift

    public var minimumValue: Double?
  • The maximum value of this number field. If nil, it is unconstrained by a maximum value.

    Declaration

    Swift

    public var maximumValue: Double?
  • Flag indicating if the number field is constrained to being an integer value.

    Declaration

    Swift

    public var isInteger: Bool
  • Convenience method that calls self.fieldNumber.setValueFromLocalizedText(text) and automatically sets self.currentTextValue to self.fieldNumber.textValue.

    Declaration

    Swift

    open func setValueFromLocalizedText(_ text: String)