     open var allowedSelectionCounts: Int = 9
     open weak var delegate: TabNavigationImagePickerControllerDelegate?
     
+    fileprivate var _captureSession: AVCaptureSession!
+    fileprivate var _captureDeviceInput: AVCaptureDeviceInput!
+    fileprivate var _captureVideoPreviewLayer: AVCaptureVideoPreviewLayer!
+    
     fileprivate var imagesResult: ImagesResultHandler?
     
     init(delegate: TabNavigationImagePickerControllerDelegate? = nil, imagesResult: ImagesResultHandler? = nil) {

        
        UIDevice.current.beginGeneratingDeviceOrientationNotifications()
        NotificationCenter.default.addObserver(self, selector: #selector(_handleOrientationDidChange(_:)), name: .UIDeviceOrientationDidChange, object: nil)
    }
    
    deinit {


import UIKit
import Photos
import AVFoundation

// MARK: - TabNavigationImagePickerController.

extension TabNavigationImagePickerController {
    public typealias ImagesResultHandler = (([UIImage]) -> Void)
