Is it possible to get textContentType raw value in swift/swiftui without user having to tap on it when keyboard appears
Hi Is it possible to get textContentType raw value in swift/swiftui without user having to tap on it when keyboard appears.
I want the value to get copied in the background state without getting user to click on it so it autofills textfields.
struct ContentView: View {
@State var code: String = ""
@State var pasteBoard = UIPasteboard.general
var body: some View {
VStack {
TextField("Code", text: $code)
.textContentType(.oneTimeCode)...