Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-05-30 15:57:09 +04:00
parent 381a6ebabd
commit 2b22d175d8
17 changed files with 278 additions and 81 deletions

View File

@@ -880,7 +880,7 @@ public final class MediaToolsScreen: ViewController {
self.validLayout = layout
let previewSize = CGSize(width: layout.size.width, height: floorToScreenPixels(layout.size.width * 1.77778))
let topInset: CGFloat = floor(layout.size.height - previewSize.height) / 2.0
let topInset: CGFloat = floorToScreenPixels(layout.size.height - previewSize.height) / 2.0
let environment = ViewControllerComponentContainer.Environment(
statusBarHeight: layout.statusBarHeight ?? 0.0,