Skip to content

Commit

Permalink
Merge pull request #95 from hyperoslo/fix/setting-button
Browse files Browse the repository at this point in the history
Fix settings button covered by focus animation
  • Loading branch information
vadymmarkov authored Jan 30, 2018
2 parents bdc0450 + 2bbd61d commit 51acd30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BarcodeScanner.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "BarcodeScanner"
s.summary = "Simple and beautiful barcode scanner."
s.version = "4.0.0"
s.version = "4.0.1"
s.homepage = "https://github.com/hyperoslo/BarcodeScanner"
s.license = 'MIT'
s.author = { "Hyper Interaktiv AS" => "[email protected]" }
Expand Down
5 changes: 4 additions & 1 deletion Sources/Controllers/CameraViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,11 @@ public final class CameraViewController: UIViewController {

/// Performs focus view animation.
private func animateFocusView() {
// Restore to initial state
focusView.layer.removeAllAnimations()
focusView.isHidden = false
animatedFocusViewConstraints.deactivate()
regularFocusViewConstraints.activate()
view.layoutIfNeeded()

guard barCodeFocusViewType == .animated else {
return
Expand Down

0 comments on commit 51acd30

Please sign in to comment.