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

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

    public required init() {


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