Skip to content

Commit 3be2fc8

Browse files
committed
Fix settings button cover by focus animation
1 parent bdc0450 commit 3be2fc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/Controllers/CameraViewController.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,11 @@ public final class CameraViewController: UIViewController {
275275

276276
/// Performs focus view animation.
277277
private func animateFocusView() {
278+
// Restore to initial state
278279
focusView.layer.removeAllAnimations()
279-
focusView.isHidden = false
280+
animatedFocusViewConstraints.deactivate()
281+
regularFocusViewConstraints.activate()
282+
view.layoutIfNeeded()
280283

281284
guard barCodeFocusViewType == .animated else {
282285
return

0 commit comments

Comments
 (0)