ColorRepresentationView

final class ColorRepresentationView : UIView

This view is a representation of one color in the palette.

  • Label that displays the name of the color.

    Declaration

    Swift

    private(set) var nameLabel: UILabel! { get }
  • Label that displays the hexadecimal representation of the color.

    Declaration

    Swift

    private(set) var hexaLabel: UILabel! { get }
  • UIColor for the view.

    Declaration

    Swift

    private(set) var color: UIColor! { get }
  • Palette from where the app will grab the color.

    Declaration

    Swift

    private(set) var palette: UIColor.Palette! { get }
  • Custom initializer for the view.

    Declaration

    Swift

    convenience init(color: UIColor, palette: UIColor.Palette)

    Parameters

    color

    the color to display

    palette

    from where the app will grab the color