Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JNdhlovu committed Oct 2, 2024
1 parent 15d1415 commit b15d0a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ internal class SmileIDSmartSelfieCaptureView private constructor(
val viewModel: SelfieViewModel =
viewModel(
factory =
viewModelFactory {
SelfieViewModel(
isEnroll = false,
userId = userId,
jobId = jobId,
allowNewEnroll = false,
skipApiSubmission = true,
metadata = metadata,
)
},
viewModelFactory {
SelfieViewModel(
isEnroll = false,
userId = userId,
jobId = jobId,
allowNewEnroll = false,
skipApiSubmission = true,
metadata = metadata,
)
},
)
val uiState = viewModel.uiState.collectAsStateWithLifecycle().value
CompositionLocalProvider(
Expand All @@ -97,11 +97,12 @@ internal class SmileIDSmartSelfieCaptureView private constructor(
MaterialTheme(colorScheme = SmileID.colorScheme, typography = SmileID.typography) {
Surface(content = {
when {
showInstructions && !acknowledgedInstructions -> SmartSelfieInstructionsScreen(
showAttribution = showAttribution,
) {
acknowledgedInstructions = true
}
showInstructions && !acknowledgedInstructions ->
SmartSelfieInstructionsScreen(
showAttribution = showAttribution,
) {
acknowledgedInstructions = true
}
uiState.processingState != null -> HandleProcessingState(viewModel)
uiState.selfieToConfirm != null ->
HandleSelfieConfirmation(
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SmileIDDocumentCaptureView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct SmileIDDocumentRootView: View {
onError: didError,
onSkip: onSkip
).preferredColorScheme(.light)
}.environmentObject(localMetadata).padding()}
}.environmentObject(localMetadata).padding()
}

func onConfirmed(data: Data) {
Expand Down

0 comments on commit b15d0a8

Please sign in to comment.