Index

RBRatingView

Properties

States

Property: invalidState

The theme to use when the field failed validation.

Property: validState

The theme to use when the field passed validation.

spaceBetweenImages

Type: decimal

The space between images.

contentMode

Type: UIViewContentMode

The content mode of the view.

Options:

  • right
  • scaleaspectfill
  • bottomleft
  • bottom
  • bottomright
  • left
  • top
  • redraw
  • scaleaspectfit
  • scaletofill
  • center
  • topleft
  • topright

clipsToBounds

Type: boolean

Whether or not the view clips to bounds.

toastAlertView

Type: RBToastAlertView

The theme of the managed toast alerts on the view.

backgroundColor

Type: UIColor

The background color of the view.

userInteractionEnabled

Type: boolean

Whether or not the view allows user interaction.

filledImageTintColor

Type: UIColor

The tint color of the image.

hidden

Type: boolean

Whether or not the view is hidden.

borderColor

Type: UIColor

The color to use on the border on the view.

borderColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

activityView

Type: RBActivityView

The theme of the managed activity indicator on the view.

tintColor

Type: UIColor

The tint color of the view.

layerShadowColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

tintColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

layerShadowOpacity

Type: decimal

The shadow opacity to use on the view.

corners

Type: UIRectCorner

The corners that should be rounded.

Options:

  • bottomleft
  • all
  • bottomright
  • topleft
  • topright

layerShadowRadius

Type: decimal

The shadow radius to use on the view in pt.

unfilledImageTintColor

Type: UIColor

The tint color of the image.

maximumRating

Type: integer

The maximum rating.

backgroundColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

unfilledImage

Type: UIImage

The image to use for an unfilled rating item (star).

layerShadowOffset

Type: CGSize

The shadow offset to use.

orientation

Type: RBOrientation

Whether the stars should be horizontally or vertically presented.

Options:

  • vertical
  • horizontal

pillCorners

Type: UIRectCorner

Apply a pill effect. Note this will override any effect of the 'corners' and 'cornerRadius' properties.

Options:

  • bottomleft
  • all
  • bottomright
  • topleft
  • topright

filledImage

Type: UIImage

The image to use for a filled rating item (star).

borderEdges

Type: UIRectEdge

The edges on which to apply a border.

Options:

  • all
  • none
  • left
  • bottom
  • right
  • top

borderWidth

Type: decimal

The width of the border to use on the view in pt.

alpha

Type: decimal (0.0 - 1.0)

The alpha channel of the view.

layerShadowColor

Type: UIColor

The color to use for the shadow on the view.

cornerRadius

Type: decimal

The rounded corner radius to use on the view in pt.

zeroSelection

Type: boolean

Whether or not zero selection is allowed.

enabled

Type: boolean

Whether or not user input is enabled.