         mediaPickerView.setShowsCropButton(showsCropButton)
     }
     
+    // MARK: - Private
+    
+    func layoutMediaPickerView(interfaceOrientation: UIInterfaceOrientation) {
+        mediaPickerView.frame = view.bounds
+        mediaPickerView.transform = CGAffineTransform(interfaceOrientation: interfaceOrientation)
+    }
+    
     // MARK: - Dispose bag
     
     private var disposables = [AnyObject]()

    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        navigationController?.setNavigationBarHidden(true, animated: animated)
        UIApplication.shared.setStatusBarHidden(true, with: .fade)

        super.viewDidLayoutSubviews()
        
        if !isBeingRotated {
            layoutMediaPickerView(interfaceOrientation: interfaceOrientation)
        }
        onPreviewSizeDetermined?(mediaPickerView.previewSize)
        layoutSubviewsPromise.fulfill()
