Skip to content

Commit

Permalink
fix can't compile macCatalys 1.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Nov 5, 2024
1 parent 991dcab commit cc5d5d3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/Extension/AVCaptureSession+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ extension AVCaptureSession {
}
}
}
#endif

#else
@available(tvOS 17.0, *)
extension AVCaptureSession {
@available(iOS, obsoleted: 16.0)
Expand All @@ -36,4 +35,5 @@ extension AVCaptureSession {
}
}
}
#endif
// swiftlint:enable unused_setter_value
1 change: 1 addition & 0 deletions Sources/IO/IOAudioMixerByMultiTrack.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AVFoundation
import CoreAudio
import Foundation

final class IOAudioMixerByMultiTrack: IOAudioMixerConvertible {
Expand Down
1 change: 1 addition & 0 deletions Sources/IO/IOAudioMonitor.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AudioUnit
import AVFoundation
import CoreAudio
import CoreMedia
import Foundation

Expand Down
1 change: 1 addition & 0 deletions Sources/IO/IOAudioRingBuffer.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Accelerate
import AVFoundation
import CoreAudio
import CoreMedia
import Foundation

Expand Down
5 changes: 2 additions & 3 deletions Sources/Screen/Shape.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ final class RoundedSquareShape: Shape {
return nil
}
let path = CGPath(roundedRect: rect, cornerWidth: cornerRadius, cornerHeight: cornerRadius, transform: nil)
#if canImport(AppKit)
#if os(macOS)
context.setFillColor(NSColor.white.cgColor)
#endif
#if canImport(UIKit)
#else
context.setFillColor(UIColor.white.cgColor)
#endif
context.addPath(path)
Expand Down

0 comments on commit cc5d5d3

Please sign in to comment.