Initializerswift 6.0.3FoundationEssentials
init(_:)
The complete list of valid measurement systems can be found here, under the key with the name “ms”
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
init(_ identifier: String)
The complete list of valid measurement systems can be found here, under the key with the name “ms”
init(_ identifier: String)
s20FoundationEssentials6LocaleV17MeasurementSystemVyAESScfc
What are these?3SXAY
import FoundationEssentials
struct MeasurementSystem
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.
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(stringLiteral value: String)
static let cldrKeywordKey: ICUCLDRKey
static let legacyKeywordKey: ICULegacyKey
static var measurementSystems: [Locale.MeasurementSystem] { get }
Returns a list of measurement systems
static let metric: Locale.MeasurementSystem
Metric system
static let uk: Locale.MeasurementSystem
UK System of measurement: feet, pints, etc.; pints are 20oz
static let us: Locale.MeasurementSystem
US System of measurement: feet, pints, etc.; pints are 16oz
var debugDescription: String { get }
var identifier: String { get set }
static func == (lhs: Locale.MeasurementSystem, rhs: Locale.MeasurementSystem) -> Bool
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)