IconTextFit

public enum IconTextFit : String, Codable, CaseIterable

Scales the icon to fit around the associated text.

  • The icon is displayed at its intrinsic aspect ratio.

    Declaration

    Swift

    case none = "none"
  • The icon is scaled in the x-dimension to fit the width of the text.

    Declaration

    Swift

    case width = "width"
  • The icon is scaled in the y-dimension to fit the height of the text.

    Declaration

    Swift

    case height = "height"
  • The icon is scaled in both x- and y-dimensions.

    Declaration

    Swift

    case both = "both"