hi,EDIT: OOPS - missed that this is a SwiftUI question (and i'm not there yet), so not sure if the following really answers the question ⚠you might want to go back to the topic Understanding UITextView Input of May 10 and using the shouldChangeText(in:replacementText:) method (part of UITextInput protocol that UITextField conforms to).in short, shouldChangeText(in:replacementText:) gives you a more general way to see what's coming into a UITextField before it gets there (which could be from a keystroke, but also from a paste); it may do what you need, but i don't know that there's a direct keystroke reader (assume you're talking about iOS).hope that helps,DMG
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: