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 theshort
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 thelong
style, it uses full descriptions of the compass direction, like “north” or “northeast.”Declaration
Swift
case long