Skip to content

Commit 51acd30

Browse files
authored
Merge pull request #95 from hyperoslo/fix/setting-button
Fix settings button covered by focus animation
2 parents bdc0450 + 2bbd61d commit 51acd30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

BarcodeScanner.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "BarcodeScanner"
33
s.summary = "Simple and beautiful barcode scanner."
4-
s.version = "4.0.0"
4+
s.version = "4.0.1"
55
s.homepage = "https://github.com/hyperoslo/BarcodeScanner"
66
s.license = 'MIT'
77
s.author = { "Hyper Interaktiv AS" => "[email protected]" }

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)