BackgroundMode

public enum BackgroundMode

Defines the mode for height/width used for the background for the text

  • Background matches the height/width of text with font leading padding all around

    Declaration

    Swift

    case matchText
  • Background matches the height of text based on font with minimal padding all around.

    Declaration

    Swift

    case matchTextExact
  • Background matches entire line irrespective of font height/used character width in the given line

    Declaration

    Swift

    case matchLine