RVS_SpinnerDataItem

public struct RVS_SpinnerDataItem

This struct is used to represent one value of the spinner.

It has only one required value: an icon, represented by a UIImage. It can be any size, but you shouldn’t need anything bigger than about 100 display units square.

  • This is the optional title for the data item.

    Declaration

    Swift

    public let title: String
  • This is the required image to be displayed for the data item. This is what is most prominently displayed.

    Declaration

    Swift

    public let icon: UIImage
  • This is an optional description String, which can provide more detailed information about the data item.

    Declaration

    Swift

    public let description: String?
  • This is any associated data value. It is an optional Any, and needs to be cast.

    Declaration

    Swift

    public let value: Any?
  • The default initializer. The only required argument is the icon.

    Declaration

    Swift

    public init(title inTitle: String = "", icon inIcon: UIImage, description inDescription: String? = nil, value inValue: Any? = nil)

    Parameters

    inTitle

    A String, with the title of this value. This is optional. Default is a blank String.

    icon

    An image to be displayed for the value. This is the only required argument.

    description

    An optional String (default is nil), with a description of the value.

    value

    An optional value (default is nil) to be associated with this value item.