Update: I want to programatically simulate the key press event similar to user actually pressing a key on a virtual keyboard or external keyboard(for ipad). This will automatically invoke the UITextFieldDelegate method shouldChangeCharactersIn(_:range:replacementString:) and the pressesBegan(_:with:) methods, and take care of the textfield value updation.
Note : In MacOS we can create custom NSEvents and post them to NSApp, allowing us to simulate mouse, keypress, gesture interactions. I wanted to understand If there is something similar frame available for iOS simulation?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: