Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-06-14 16:42:55 +04:00
parent e3222ca460
commit b6420c4405
19 changed files with 997 additions and 247 deletions

View File

@@ -200,7 +200,7 @@ private final class ShutterButtonContentComponent: Component {
}
}
private final class FlipButtonContentComponent: Component {
final class FlipButtonContentComponent: Component {
private let action: ActionSlot<Void>
init(action: ActionSlot<Void>) {
@@ -277,6 +277,7 @@ final class CaptureControlsComponent: Component {
case flip
}
let isTablet: Bool
let shutterState: ShutterButtonState
let lastGalleryAsset: PHAsset?
let tag: AnyObject?
@@ -291,6 +292,7 @@ final class CaptureControlsComponent: Component {
let zoomUpdated: (CGFloat) -> Void
init(
isTablet: Bool,
shutterState: ShutterButtonState,
lastGalleryAsset: PHAsset?,
tag: AnyObject?,
@@ -304,6 +306,7 @@ final class CaptureControlsComponent: Component {
swipeHintUpdated: @escaping (SwipeHint) -> Void,
zoomUpdated: @escaping (CGFloat) -> Void
) {
self.isTablet = isTablet
self.shutterState = shutterState
self.lastGalleryAsset = lastGalleryAsset
self.tag = tag
@@ -319,6 +322,9 @@ final class CaptureControlsComponent: Component {
}
static func ==(lhs: CaptureControlsComponent, rhs: CaptureControlsComponent) -> Bool {
if lhs.isTablet != rhs.isTablet {
return false
}
if lhs.shutterState != rhs.shutterState {
return false
}