 
         mediaRibbonView.alpha = (cameraControlsView.top < cameraFrame.bottom) ? 0.25 /* TODO */ : 1
         
-        closeButton.frame = CGRect(
-            origin: CGPoint(x: 8, y: 8),
-            size: closeButtonSize
-        )
-        
-        continueButton.top = 8
-        continueButton.right = bounds.right - 8
+        layoutCloseAndContinueButtons()
 
         flashView.frame = bounds
     }

        cameraView?.hidden = !visible
        onCameraVisibilityChange?(isCameraVisible: visible)
    }
}
    }
    
    func adjustForDeviceOrientation(orientation: DeviceOrientation) {
        
        let transform = CGAffineTransform(deviceOrientation: orientation)
        
        closeAndContinueButtonsSwapped = (orientation == .LandscapeLeft)
        
        photoView.transform = transform
        closeButton.transform = transform
