 
     @objc
     func focusTapped(_ recognizer: UITapGestureRecognizer) {
+        guard isInited else {
+            return
+        }
+        
         doAfterPermissionCheck { [weak self] in
             self?.focus(recognizer: recognizer)
         }

            }
            self?.photoCapture.start(with: strongSelf.v.previewViewContainer, completion: {
                DispatchQueue.main.async {
                    self?.refreshFlashButton()
                }
            })

    public var didCapturePhoto: ((UIImage) -> Void)?
    let photoCapture = newPhotoCapture()
    let v: YPCameraView!
    var isInited = false
    override public func loadView() { view = v }

    public required init() {
