In iOS 16.0, the new three finger undo tap gesture alert shows up in every app regardless of any text editing being present. This seems to be a significant change and undesirable behavior for multi-touch applications like instruments.
I noticed that GarageBand is the only application not exhibiting this behavior. Is there a way to opt-out?
Here is an example from Moog's Model D application.
I found a workaround. Put this code in your ViewController.
// becomeFirstResponder returns "NO" in "viewDidLoad".
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self becomeFirstResponder];
}
- (BOOL)canBecomeFirstResponder
{
return YES;
}
- (UIEditingInteractionConfiguration)editingInteractionConfiguration
{
return UIEditingInteractionConfigurationNone;
}
If you implement Keyboard Input, this should be in the UIResponder object.