CariocaIndicatorConfiguration

public protocol CariocaIndicatorConfiguration

Required parameters to create a custom indicator view

  • color Default implementation

    The shape’s color

    Default Implementation

    Default color

    Declaration

    Swift

    var color: UIColor
  • font Default implementation

    The font used to display emojis/string

    Default Implementation

    Default font

    Declaration

    Swift

    var font: UIFont
  • size Default implementation

    The shape’s size

    Default Implementation

    Default size

    Declaration

    Swift

    var size: CGSize
  • borderMargin Default implementation

    The margin to the screen

    Default Implementation

    Default border margin

    Declaration

    Swift

    var borderMargin: CGFloat
  • bouncingValues Default implementation

    The bouncing values used for animation

    Default Implementation

    Default bouncing values

    Declaration

    Swift

    var bouncingValues: BouncingValues
  • shape(for:frame:) Default implementation

    The custom shape of the view

    Default Implementation

    Declaration

    Swift

    func shape(for edge: UIRectEdge, frame: CGRect) -> UIBezierPath
  • iconMargins(for:) Default implementation

    The margins for the icon, depending on the edge

    Default Implementation

    Default margins are 0,0,0,0

    Declaration

    Swift

    func iconMargins(for edge: UIRectEdge) -> (top: CGFloat, right: CGFloat, bottom: CGFloat, left: CGFloat)