Skip to content
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

Closed
wants to merge 68 commits into from

Conversation

tobitech
Copy link
Contributor

@tobitech tobitech commented Oct 8, 2024

Story: https://app.shortcut.com/smileid/story/13453/

Summary

  • Create a separate class for managing selfie submission
  • Introduce new SelfieProcessingView to show the status of selfie submission
  • Introduce a navigation pattern for Selfie capture flow with NavigationView.

Known Issues

N/A

Test Instructions

N/A.

Screenshot

# 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:
#	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.
…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
@tobitech tobitech marked this pull request as ready for review October 17, 2024 11:26
@tobitech tobitech requested a review from a team as a code owner October 17, 2024 11:26
@@ -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
Copy link
Contributor

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"))
Copy link
Contributor

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
@tobitech tobitech requested a review from JNdhlovu October 24, 2024 12:46
Copy link
Contributor

@JNdhlovu JNdhlovu left a 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(
Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@tobitech
Copy link
Contributor Author

tobitech commented Nov 6, 2024

Closing this PR in favour of the updated design implemented here #250

@tobitech tobitech closed this Nov 6, 2024
@tobitech tobitech deleted the selfie-submission branch November 6, 2024 11:37
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.

2 participants