@@ -20,7 +20,7 @@ import _SwiftCoreFoundationOverlayShims
2020/// A `Measurement` is a model type that holds a `Double` value associated with a `Unit`.
2121///
2222/// Measurements support a large set of operators, including `+`, `-`, `*`, `/`, and a full set of comparison operators.
23- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
23+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
2424public struct Measurement < UnitType : Unit > : ReferenceConvertible , Comparable , Equatable {
2525 public typealias ReferenceType = NSMeasurement
2626
@@ -41,7 +41,7 @@ public struct Measurement<UnitType : Unit> : ReferenceConvertible, Comparable, E
4141 }
4242}
4343
44- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
44+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
4545extension Measurement : CustomStringConvertible , CustomDebugStringConvertible , CustomReflectable {
4646 public var description : String {
4747 return " \( value) \( unit. symbol) "
@@ -61,7 +61,7 @@ extension Measurement : CustomStringConvertible, CustomDebugStringConvertible, C
6161
6262
6363/// When a `Measurement` contains a `Dimension` unit, it gains the ability to convert between the kinds of units in that dimension.
64- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
64+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
6565extension Measurement where UnitType : Dimension {
6666 /// Returns a new measurement created by converting to the specified unit.
6767 ///
@@ -117,7 +117,7 @@ extension Measurement where UnitType : Dimension {
117117 }
118118}
119119
120- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
120+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
121121extension Measurement {
122122 /// Add two measurements of the same Unit.
123123 /// - precondition: The `unit` of `lhs` and `rhs` must be `isEqual`.
@@ -212,7 +212,7 @@ internal typealias MeasurementBridgeType = _ObjectTypeBridgeable
212212internal typealias MeasurementBridgeType = _ObjectiveCBridgeable
213213#endif
214214
215- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
215+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
216216extension Measurement : MeasurementBridgeType {
217217 @_semantics ( " convertToObjectiveC " )
218218 public func _bridgeToObjectiveC( ) -> NSMeasurement {
@@ -238,7 +238,7 @@ extension Measurement : MeasurementBridgeType {
238238 }
239239}
240240
241- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
241+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
242242extension NSMeasurement : _HasCustomAnyHashableRepresentation {
243243 // Must be @nonobjc to avoid infinite recursion during bridging.
244244 @nonobjc
@@ -252,7 +252,7 @@ extension NSMeasurement : _HasCustomAnyHashableRepresentation {
252252}
253253
254254// This workaround is required for the time being, because Swift doesn't support covariance for Measurement (26607639)
255- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
255+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
256256extension MeasurementFormatter {
257257 public func string< UnitType> ( from measurement: Measurement < UnitType > ) -> String {
258258 if let result = string ( for: measurement) {
@@ -263,7 +263,7 @@ extension MeasurementFormatter {
263263 }
264264}
265265
266- // @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
266+ // @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
267267// extension Unit : Codable {
268268// public convenience init(from decoder: Decoder) throws {
269269// let container = try decoder.singleValueContainer()
@@ -277,7 +277,7 @@ extension MeasurementFormatter {
277277// }
278278// }
279279
280- @available ( OSX 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
280+ @available ( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * )
281281extension Measurement : Codable {
282282 private enum CodingKeys : Int , CodingKey {
283283 case value
0 commit comments