Skip to content

Modify FaceCaptureController line 327 for Flutter compiler. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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