Skip to content

Commit ee50fdc

Browse files
committed
Various fixes
1 parent 09c12f9 commit ee50fdc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

submodules/TelegramUI/Components/CameraScreen/Sources/CameraCollage.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,9 @@ final class CameraCollageView: UIView, UIGestureRecognizerDelegate {
10141014
guard let self, let videoSource = self.cameraVideoSource, self.isEnabled else {
10151015
return
10161016
}
1017-
self.cameraVideoLayer.video = videoSource.currentOutput
1017+
Queue.mainQueue().async {
1018+
self.cameraVideoLayer.video = videoSource.currentOutput
1019+
}
10181020
}
10191021

10201022
let videoSize = CGSize(width: 160.0 * 2.0, height: 284.0 * 2.0)

submodules/TelegramUI/Components/CameraScreen/Sources/CameraScreen.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,9 +1916,12 @@ private final class CameraScreenComponent: CombinedComponent {
19161916
availableSize: CGSize(width: 40.0, height: 40.0),
19171917
transition: .immediate
19181918
)
1919+
if component.cameraState.isCollageEnabled {
1920+
nextButtonX += 48.0
1921+
}
19191922
var collageButtonX = nextButtonX
19201923
if rightMostButtonWidth.isZero {
1921-
collageButtonX = availableSize.width - topControlSideInset - collageButton.size.width / 2.0 - 5.0
1924+
collageButtonX = availableSize.width - topControlSideInset - collageButton.size.width / 2.0 - 54.0
19221925
}
19231926
context.add(collageButton
19241927
.position(CGPoint(x: collageButtonX, y: max(environment.statusBarHeight + 5.0, environment.safeInsets.top + topControlVerticalInset) + collageButton.size.height / 2.0 + 2.0))

0 commit comments

Comments
 (0)