     override public func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
         super.viewWillTransition(to: size, with: coordinator)
          lastInterfaceOrientation = UIApplication.shared.statusBarOrientation
+        
         if animationRunning {
             return
         }

    internal func showInfo() {
        let controller = UIViewController()
        controller.modalPresentationStyle = .popover
        controller.preferredContentSize = CGSize(width: self.view.bounds.width, height: 300)
        
        let label = UILabel(frame: CGRect(x: 0, y: 6, width: self.view.bounds.width - 20, height: 30))
        label.text = "How to Use"
        label.textAlignment = .center
        label.font = ViFont.medium(with: 20)
        label.textColor = UIColor.white
        controller.view.addSubview(label)
        
        let textview = UITextView()
        textview.frame = CGRect(x: 10, y: (label.frame.origin.y + label.frame.size.height ),
                                width: self.view.bounds.width - 20,
                                height: 250)
        textview.isEditable = false
        textview.text = "How to use instruction"
        textview.font = ViFont.regular(with: 14)
        textview.textColor = UIColor.white
        textview.backgroundColor = UIColor.clear
        
        controller.view.addSubview(textview)
        
        if let popoverController = controller.popoverPresentationController {
            popoverController.backgroundColor = UIColor.colorWithHexString("000000", alpha: 0.6)
            popoverController.sourceView = self.view
            popoverController.sourceRect = self.infoButton.frame
            popoverController.permittedArrowDirections = UIPopoverArrowDirection.any
            popoverController.delegate = self
        }

    let buttonSize : CGFloat = 52
    let spacingBtn : CGFloat = 10
    
    public var infoTitle : String = "How to Use"
    public var infoTxt : String = "Snap a photo of an item you'd like to find, and we'll search our store to find a match or something very similar."
    public var infoCameraTxt : String = "Photograph the item straight-on in bright lighting for the best search results."
    public var infoFlashTxt : String = "Use the flash if there isn't enough light"
    
    
    var didUpdateViews = false
    var allowCropping = false
    var animationRunning = false
