Skip to content

Commit

Permalink
fix macos build (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: Oguz Yuksel <[email protected]>
  • Loading branch information
OguzYuuksel and Oguz Yuksel authored Sep 27, 2024
1 parent f664fd1 commit 744c199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Foundation

@available(iOS 16.0, *)
@available(iOS 16.0, macOS 13.0, *)
extension Duration {
public static func safe(secondsComponent: Int64, attosecondsComponent: Int64) -> Self {
// Convert attoseconds to seconds (positive or negative)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension TimeInterval {
///
/// - Note: If the `Duration` contains values that exceed the precision of `Double`, the resulting `TimeInterval` may not
/// accurately represent the smallest time increments.
@available(iOS 16.0, *)
@available(iOS 16.0, macOS 13.0, *)
public init(_ duration: Duration) {
let seconds: Self = Self(duration.components.seconds)

Expand Down

0 comments on commit 744c199

Please sign in to comment.