CariocaIconView

public class CariocaIconView: UIView

Displays a CariocaIcon, whatever the type of icon

  • The label to display emoji

    Declaration

    Swift

    var label = UILabel()
  • The imageView, to display icons

    Declaration

    Swift

    var imageView = UIImageView()
  • The label’s font

    Declaration

    Swift

    var font: UIFont = UIFont.boldSystemFont(ofSize: 16.0)
  • Initialises view

    Declaration

    Swift

    override init(frame: CGRect)

    Parameters

    frame

    The view’s frame

  • Displays an icon in the view. Only the required subview (label/imageview/?) will be displayed. Other views will be hidden, not removed.

    Declaration

    Swift

    func display(icon: CariocaIcon)

    Parameters

    icon

    The icon to display