RSDNumberPickerDataSourceObject

public struct RSDNumberPickerDataSourceObject : RSDNumberPickerDataSource

A simple struct that can be used to implement the RSDNumberPickerDataSource protocol.

  • Returns the minimum number allowed.

    Declaration

    Swift

    public let minimum: Decimal
  • Returns the maximum number allowed.

    Declaration

    Swift

    public let maximum: Decimal
  • Returns the step interval to use. If nil, then the step interval will default to advance by 1.

    Declaration

    Swift

    public let stepInterval: Decimal?
  • Returns the number formatter to use to format the displayed value and to parse the result.

    Declaration

    Swift

    public let numberFormatter: RSDNumberFormatterProtocol
  • Default initializer. Auto-synthesized init is not public.

    Declaration

    Swift

    public init(minimum: Decimal, maximum: Decimal, stepInterval: Decimal?, numberFormatter: RSDNumberFormatterProtocol)