Style

public enum Style : Hashable

Style is used to configure how a CompassDirectionFormatter translates a compass direction into a String.

  • When a CompassDirectionFormatter is configured to use the short style, it uses an abbreviation of the compass direction, like “N” for north or “NE” for northeast.

    Declaration

    Swift

    case short
  • When a CompassDirectionFormatter is configured to use the long style, it uses full descriptions of the compass direction, like “north” or “northeast.”

    Declaration

    Swift

    case long