Skip to content

Instantly share code, notes, and snippets.

Created November 20, 2021 21:47
What would you like to do?
struct ContentView: View {
@StateObject var viewModel = ViewModel()
@FocusState var isOrderIDFocused: Bool
var body: some View {
VStack {
TextField("Order ID", text: $viewModel.orderId, prompt: nil)
Button("Search") {
isOrderIDFocused = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment