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
s20FoundationEssentials6LocaleV8LanguageV10ComponentsV4fromAGs7Decoder_p_tKcfc
What are these?8ZAL4
import FoundationEssentials
struct Components
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.
struct Language
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, region: Locale.Region? = nil)
var identifier: String { get }
var languageCode: Locale.LanguageCode?
var region: Locale.Region?
var script: Locale.Script?