IconTextFit

public struct IconTextFit : RawRepresentable, Codable, Hashable

Scales the icon to fit around the associated text.

  • Declaration

    Swift

    public let rawValue: String
  • Declaration

    Swift

    public init(rawValue: String)
  • The icon is displayed at its intrinsic aspect ratio.

    Declaration

    Swift

    public static let none: IconTextFit
  • The icon is scaled in the x-dimension to fit the width of the text.

    Declaration

    Swift

    public static let width: IconTextFit
  • The icon is scaled in the y-dimension to fit the height of the text.

    Declaration

    Swift

    public static let height: IconTextFit
  • The icon is scaled in both x- and y-dimensions.

    Declaration

    Swift

    public static let both: IconTextFit