         get { return mediaPickerView.onShutterButtonTap }
         set { mediaPickerView.onShutterButtonTap = newValue }
     }
-
+    
     var onPhotoLibraryButtonTap: (() -> ())? {
         get { return mediaPickerView.onPhotoLibraryButtonTap }
         set { mediaPickerView.onPhotoLibraryButtonTap = newValue }
     }
-
+    
     var onFlashToggle: ((Bool) -> ())? {
         get { return mediaPickerView.onFlashToggle }
         set { mediaPickerView.onFlashToggle = newValue }

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

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        onPreviewSizeDetermined?(mediaPickerView.previewSize)
        layoutSubviewsPromise.fulfill()
    }
    
    override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
        
        coordinator.animate(alongsideTransition: { [weak self] context in
            self?.layoutMediaPickerView(bounds: context.containerView.bounds)
            },
        completion: nil)
        
        super.viewWillTransition(to: size, with: coordinator)
    }
    
    override open var shouldAutorotate: Bool {
