Skip to content

Modify FaceCaptureController line 327 for Flutter compiler.#5

Open
Dan-YY wants to merge 1 commit intoAcuant:masterfrom
Dan-YY:branch_face_capture_controller_fix
Open

Modify FaceCaptureController line 327 for Flutter compiler.#5
Dan-YY wants to merge 1 commit intoAcuant:masterfrom
Dan-YY:branch_face_capture_controller_fix

Conversation

@Dan-YY
Copy link

@Dan-YY Dan-YY commented Jan 26, 2022

"let view = UIView(frame: view.bounds)" 
Should be replaced by 
"let view = UIView(frame: self.view.bounds)" 
in line 327 FaceCaptureController.swift: func createSemiTransparentOverlay() -> UIView

It will be the same for Xcode, but Flutter compile it as error “Variable used within its own initial value” 


** BUILD FAILED **
Xcode's output:
↳
    /Library/Couver/CoverApp/couver_app_flutter/ios/Pods/AcuantiOSSDKV11/AcuantFaceCapture/AcuantFaceCapture/FaceCaptureController.swift:327:34: error: variable used within its own initial value
            let view = UIView(frame: view.bounds)
                                     ^

Please update this line so it’s possible to run in Flutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant