Skip to content

Commit

Permalink
Set content type to user email.
Browse files Browse the repository at this point in the history
Disable interactive dismiss during in-app takeover
  • Loading branch information
Oleg-Pecheneg committed Aug 27, 2024
1 parent ebe0de4 commit a2cf752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct PurchaseMPCWalletRootView: View {
}, path: $viewModel.navPath)
.displayError($viewModel.error)
.allowsHitTesting(!viewModel.isLoading)
.interactiveDismissDisabled(!viewModel.navPath.isEmpty)
}

init(createWalletCallback: @escaping AddWalletResultCallback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private extension PurchaseMPCWalletTakeoverEmailView {
focusBehaviour: .activateOnAppear,
keyboardType: .emailAddress,
autocapitalization: .never,
textContentType: .username,
autocorrectionDisabled: true,
isErrorState: emailVerificationError != nil,
focusedStateChangedCallback: { isFocused in
Expand All @@ -121,6 +122,7 @@ private extension PurchaseMPCWalletTakeoverEmailView {
focusBehaviour: .default,
keyboardType: .emailAddress,
autocapitalization: .never,
textContentType: .username,
autocorrectionDisabled: true)
}

Expand Down

0 comments on commit a2cf752

Please sign in to comment.