Index

Redbeard Theme Reference V1.0

RBImageSelectionField : UIView

The theme precedence for images is: images > firstImage > lastImage

The theme precedence for images if there is only a single images is: images > singleImage.

Properties

States

Property: invalidState

The theme to use when the field failed validation.

Property: validState

The theme to use when the field passed validation.


activityView

Type: RBActivityView

The theme of the managed activity indicator on the view.

allowsMultipleSelection

Type: boolean

Whether or not only single selection is allowed.

allowsSelection

Type: boolean

Whether or not selection is allowed.

alpha

Type: decimal (0.0 - 1.0)

The alpha channel of the view.

backgroundColor

Type: UIColor

The background color of the view.

backgroundColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

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.

borderEdges

Type: UIRectEdge

The edges on which to apply a border.

Options:

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

borderWidth

Type: decimal

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

contentMode

Type: UIViewContentMode

The content mode of the view.

Options:

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

cornerRadius

Type: decimal

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

corners

Type: UIRectCorner

The corners that should be rounded.

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

failureImage

Type: UIImage

The image to be displayed in case of failure.

failureImageContentMode

Type: UIViewContentMode

The content mode of the failure image.

Options:

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

failureImageTintColor

Type: UIColor

The tint color of the image.

firstImage

Type: RBImageCellView

The optional theme of the image field item in the first position.

hidden

Type: boolean

Whether or not the view is hidden.

images

Type: RBImageView

The theme of the image field items.

itemSize

Type: CGSize

The size of image items.

itemSizeMode

Type: RBImageSelectionFieldItemSizeMode

The size mode of items.

Options:

  • size
  • fillhorizontal
  • fillvertical
  • fill

lastImage

Type: RBImageCellView

The optional theme of the image field item in the last position.

layerShadowColor

Type: UIColor

The color to use for the shadow on the view.

layerShadowColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

layerShadowOffset

Type: CGSize

The shadow offset to use.

layerShadowOpacity

Type: decimal

The shadow opacity to use on the view.

layerShadowRadius

Type: decimal

The shadow radius to use on the view in pt.

loadingImage

Type: UIImage

The default image to be used when an image is being downloaded.

loadingImageContentMode

Type: UIViewContentMode

The content mode of the loading image.

Options:

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

loadingImageTintColor

Type: UIColor

The tint color of the image.

pagingEnabled

Type: boolean

Whether or not paging in enabled.

pillCorners

Type: UIRectCorner

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

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

positioner

Type: RBLayoutGridPositioner

The theme of the positioner that positions the images.

selectedOverlayImage

Type: UIImage

The image overlay when selected

selectedOverlayImageContentMode

Type: UIViewContentMode

The content mode of the overlay image.

Options:

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

selectedOverlayImageTintColor

Type: UIColor

The tint color of the image.

showsHorizontalScrollIndicator

Type: boolean

Whether or not to show the horizontal scroll indicator.

showsVerticalScrollIndicator

Type: boolean

Whether or not to show the vertical scroll indicator.

singleImage

Type: RBImageCellView

The optional theme if there is only a single image field item.

tintColor

Type: UIColor

The tint color of the view.

tintColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

toastAlertView

Type: RBToastAlertView

The theme of the managed toast alerts on the view.

zeroSelectionAllowed

Type: boolean

Whether or not zero selection is allowed.