-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor Selfie Submission and New Submission UX #241
Conversation
# Conflicts: # Example/Podfile.lock # Example/SmileID.xcodeproj/project.pbxproj # SmileID.xcodeproj/project.pbxproj # Sources/SmileID/Classes/DocumentVerification/Model/DocumentCaptureViewModel.swift # Sources/SmileID/Classes/SelfieCapture/SelfieViewModel.swift
# Conflicts: # Example/SmileID.xcodeproj/project.pbxproj
…should be displayed with instructions after delay.
# Conflicts: # Example/Podfile.lock
# Conflicts: # Example/Podfile.lock
# Conflicts: # Sources/SmileID/Classes/SelfieCapture/View/FaceBoundingArea.swift # Sources/SmileID/Classes/SelfieCapture/View/SelfieCaptureScreenV2.swift # Sources/SmileID/Classes/SelfieCapture/View/UserInstructionsView.swift
…tor, face validator and selfie view model. some code formatting.
…ght capture instruction.
…layout guide positioning.
…w model. add the right title to processing screen.
# Conflicts: # Example/SmileID.xcodeproj/project.pbxproj # Sources/SmileID/Classes/FaceDetector/FaceDetectorV2.swift # Sources/SmileID/Classes/FaceDetector/FaceValidator.swift # Sources/SmileID/Classes/FaceDetector/LivenessCheckManager.swift # Sources/SmileID/Classes/SelfieCapture/SelfieCaptureInstruction.swift # Sources/SmileID/Classes/SelfieCapture/SelfieViewModelAction.swift # Sources/SmileID/Classes/SelfieCapture/SelfieViewModelV2.swift # Sources/SmileID/Classes/SelfieCapture/View/FaceBoundingArea.swift # Sources/SmileID/Classes/SelfieCapture/View/SelfieCaptureScreenV2.swift # Sources/SmileID/Classes/SelfieCapture/View/SelfieProcessingView.swift # Sources/SmileID/Resources/Localization/en.lproj/Localizable.strings
@@ -17,7 +17,7 @@ final class FaceValidator { | |||
// MARK: Constants | |||
private let selfieQualityThreshold: Float = 0.5 | |||
private let luminanceThreshold: ClosedRange<Int> = 80...200 | |||
private let faceBoundsMultiplier: CGFloat = 1.2 | |||
private let faceBoundsMultiplier: CGFloat = 1.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this may need review provided screenshot on slack
case .inProgress: | ||
ZStack(alignment: .center) { | ||
Circle() | ||
.fill(Color(hex: "060606")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobitech can we make this a themeable color?
# Conflicts: # Example/Podfile.lock # Example/SmileID/Home/HomeView.swift # Sources/SmileID/Classes/SelfieCapture/SelfieViewModel.swift
# Conflicts: # Example/Podfile.lock
# Conflicts: # Example/Podfile.lock # Sources/SmileID/Classes/SelfieCapture/SelfieViewModel.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits but good
} | ||
guard taskTimer == nil else { return } | ||
DispatchQueue.main.async { | ||
self.taskTimer = Timer.scheduledTimer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit on weak self per other PR
@@ -221,6 +255,13 @@ extension SelfieViewModelV2 { | |||
print(error.localizedDescription) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a new change but maybe we could make this debugprint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out. I think we'd have to use a proper logging framework like OSLog eventually.
Closing this PR in favour of the updated design implemented here #250 |
Story: https://app.shortcut.com/smileid/story/13453/
Summary
Known Issues
N/A
Test Instructions
N/A.
Screenshot