Instance Propertyswift 6.0.3FoundationInternationalization
locale
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
var locale: Locale
var locale: Locale
s30FoundationInternationalization20ByteCountFormatStyleV10AttributedV6locale0A10Essentials6LocaleVvp
What are these?2LMNA
import FoundationInternationalization
struct Attributed
struct ByteCountFormatStyle
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
init(from decoder: any Decoder) throws
var allowedUnits: ByteCountFormatStyle.Units
var includesActualByteCount: Bool
var spellsOutZero: Bool
var style: ByteCountFormatStyle.Style
func format(_ value: Int64) -> AttributedString
func locale(_ locale: Locale) -> ByteCountFormatStyle.Attributed