             attributeTwo = .left
             break
         default:
-            attributeOne = .bottom
-            attributeTwo = .top
+            attributeOne = .bottomMargin
+            attributeTwo = .topMargin
             break
         }
         

        view.autoRemoveConstraint(flashButtonEdgeConstraint)
        
        let constraintRight = statusBarOrientation == .portrait || statusBarOrientation == .landscapeRight
        let attribute : NSLayoutAttribute = constraintRight ? .top : .bottom
        
        flashButtonEdgeConstraint = NSLayoutConstraint(
            item: flashButton,


        switch statusBarOrientation {
        case .portrait:
            attributeOne = .topMargin
            attributeTwo = .bottomMargin
            break
        case .landscapeRight:
            attributeOne = .left
