Skip to content

Commit

Permalink
Explicitly make amount text field lose keyboard focus
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Sep 8, 2022
1 parent a97e748 commit cae7d48
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ struct ShippingLineDetails: View {
text: $viewModel.methodTitle,
symbol: nil,
keyboardType: .default)
.accessibilityIdentifier("add-shipping-name-field")
.onTapGesture {
focusAmountInput = false
}
}
.padding(.horizontal, insets: safeAreaInsets)
.addingTopAndBottomDividers()
Expand Down

0 comments on commit cae7d48

Please sign in to comment.