Created
July 4, 2022 23:13
-
-
Save sturdysturge/2983e291134fa7299f1e47a29322ad14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
@available(iOS 16.0, *) | |
struct ContentView: View { | |
@State var focused = false | |
@State var text = "" | |
var body: some View { | |
Form { | |
Toggle("Focused", isOn: $focused) | |
FocusableTextField(text: $text, focusedBinding: $focused) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment