Skip to content

Commit 3bb29f6

Browse files
committedOct 26, 2019
Add a new unit in UnitFrequency
1 parent 0923f82 commit 3bb29f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎Sources/SwiftMeasurement.swift

+5
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ public extension Double {
332332
return Measurement(value: self, unit: .nanohertz)
333333
}
334334

335+
@available(iOS 13.0, *)
336+
var framesPerSecond: Measurement<UnitFrequency> {
337+
return Measurement(value: self, unit: .framesPerSecond)
338+
}
339+
335340
}
336341

337342
// - UnitArea: [L^2]

0 commit comments

Comments
 (0)
Please sign in to comment.