RVS_AutofillTextFieldDataSourceType

public class RVS_AutofillTextFieldDataSourceType
extension RVS_AutofillTextFieldDataSourceType: CustomDebugStringConvertible
extension RVS_AutofillTextFieldDataSourceType: CustomStringConvertible
extension RVS_AutofillTextFieldDataSourceType: Equatable
extension RVS_AutofillTextFieldDataSourceType: Comparable

This is what the protocol needs to provide to the widget. It is one element of an Array. The purpose of this type, is to allow data context to be attached to a value, and to allow the Array type to be extended.

  • The actual String value of this element. Comparisons will happen within this.

    Declaration

    Swift

    public let value: String
  • This is an arbitrary associated data type. It can be anything, and will be associated with the String value. It should be noted that this will be a strong reference to classes.

    Declaration

    Swift

    public let refCon: Any?
  • Standard initializer

    Declaration

    Swift

    public init(value inValue: String, refCon inRefCon: Any? = nil)

    Parameters

    value

    Required (and must be non-blank). The String value.

    refCon

    Optional (default is nil). This is an arbitrary data item that is associated with this instance. It should be noted that this will be a strong reference to classes.

CustomDebugStringConvertible Conformance

  • This gives us a debug display.

    Declaration

    Swift

    public var debugDescription: String { get }

CustomStringConvertible Conformance

  • This gives us a simple display.

    Declaration

    Swift

    public var description: String { get }

Equatable Conformance

  • Equality tester

    Declaration

    Swift

    public static func == (lhs: RVS_AutofillTextFieldDataSourceType, rhs: RVS_AutofillTextFieldDataSourceType) -> Bool

    Parameters

    lhs

    Left-hand side of the comparison.

    rhs

    Right-hand side of the comparison.

    Return Value

    True, if the the two parameters are equal.

Comparable Conformance

  • Comparison tester

    Declaration

    Swift

    public static func < (lhs: RVS_AutofillTextFieldDataSourceType, rhs: RVS_AutofillTextFieldDataSourceType) -> Bool

    Parameters

    lhs

    Left-hand side of the comparison.

    rhs

    Right-hand side of the comparison.

    Return Value

    True, if the lhs is less than rhs