Initializerswift 6.0.3FoundationEssentials
init(from:)
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s20FoundationEssentials6LocaleV8LanguageV4fromAEs7Decoder_p_tKcfc
What are these?7X549
import FoundationEssentials
struct Language
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.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(components: Locale.Language.Components)
init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, region: Locale.Region? = nil)
static var systemLanguages: [Locale.Language] { get }
Returns a list of system languages, includes the languages of all product localization for the current platform
var components: Locale.Language.Components
struct Components