     var flashButtonEdgeConstraint: NSLayoutConstraint?
     var flashButtonGravityConstraint: NSLayoutConstraint?
     
+    var cameraOverlayEdgeOneConstraint: NSLayoutConstraint?
+    var cameraOverlayEdgeTwoConstraint: NSLayoutConstraint?
+    var cameraOverlayWidthConstraint: NSLayoutConstraint?
+    var cameraOverlayCenterConstraint: NSLayoutConstraint?
+    
     let cameraView : CameraView = {
         let cameraView = CameraView()
         cameraView.translatesAutoresizingMaskIntoConstraints = false

    }
    
    /**
     * This method will pin the CameraOverlay on the both
     * horizontal sides of the superview.
     * Then, generate the height of this view based on the
     * width, to generate a square.
     * Finally, center the CameraOverlay on the center of
     * superview.
     */
    func configCameraOverlayConstraints() {
        view.addConstraint(NSLayoutConstraint(
            item: cameraOverlay,
            attribute: .Left,
            relatedBy: .Equal,
            toItem: view,
            attribute: .Left,
            multiplier: 1.0, constant: 15))
        view.addConstraint(NSLayoutConstraint(
            item: cameraOverlay,
            attribute: .Right,
            relatedBy: .Equal,
            toItem: view,
            attribute: .Right,
            multiplier: 1.0, constant: -15))
        view.addConstraint(NSLayoutConstraint(
            item: cameraOverlay,
            attribute: .Height,
            relatedBy: .Equal,
            toItem: cameraOverlay,
            attribute: .Width,
            multiplier: 1.0, constant: 0))
        view.addConstraint(NSLayoutConstraint(
            item: cameraOverlay,
            attribute: .CenterY,
            relatedBy: .Equal,
            toItem: view,
            attribute: .CenterY,
            multiplier: 1.0, constant: 0))
    }
    
    /**

        if !didUpdateViews {
            configCameraViewConstraints()
            configCloseButtonConstraint()
            didUpdateViews = true
        }
        let portrait = UIDevice.currentDevice().orientation.isPortrait
