Various fixes

This commit is contained in:
Ilya Laktyushin
2023-07-07 02:10:09 +02:00
parent fa6c21fb11
commit eb07ea17e7
5 changed files with 58 additions and 29 deletions

View File

@@ -82,7 +82,11 @@ final class CameraDeviceContext {
private var preferredMaxDimensions: CMVideoDimensions {
if self.additional {
return CMVideoDimensions(width: 1920, height: 1440)
if case .iPhoneXS = DeviceModel.current {
return CMVideoDimensions(width: 1440, height: 1080)
} else {
return CMVideoDimensions(width: 1920, height: 1440)
}
} else {
return CMVideoDimensions(width: 1920, height: 1080)
}