fix errors and warnings
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s

This commit is contained in:
wt committed 2026-08-10 17:22:47 +07:00
1 parent dee1eab897
commit 6a2f27d92a
2 files changed
+17 -17

No files matched your search

+16 -16
View File
@@ -942,22 +942,22 @@ enum VideoNoteStopPolicy {
}
}
#if os(iOS)
extension VideoNoteRecorder {
fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation {
switch UIDevice.current.orientation {
case .portraitUpsideDown:
return .portraitUpsideDown
case .landscapeLeft:
return .landscapeRight
case .landscapeRight:
return .landscapeLeft
default:
return .portrait
}
}
}
#endif
// #if os(iOS)
// extension VideoNoteRecorder {
// fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation {
// switch UIDevice.current.orientation {
// case .portraitUpsideDown:
// return .portraitUpsideDown
// case .landscapeLeft:
// return .landscapeRight
// case .landscapeRight:
// return .landscapeLeft
// default:
// return .portrait
// }
// }
// }
// #endif
private enum VideoNoteRecorderError: LocalizedError {
case cameraPermissionDenied