Instance Method (Default implementation)swift 6.0.3FoundationEssentials
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> Self
func locale(_ locale: Locale) -> Self
s20FoundationEssentials11FormatStylePAAE6localeyxAA6LocaleVF
What are these?29G7U
import FoundationEssentials
protocol FormatStyle : Decodable, Encodable, Hashable
A type that can convert a given data type into a representation.
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.
func locale(_ locale: Locale) -> Self
If the format allows selecting a locale, returns a copy of this format with the new locale set. Default implementation returns an unmodified self.