Disable a 3-finger tap gesture in iOS16 (for Developers)

On iOS/iPadOS 16, a toolbar appears when you tap with three fingers. There is a workaround, which is described here.
This behavior was fixed on iOS/iPadOS 16.1. The information on this page is old.

Edited on 2022/10/7: A glitch occurs when you override UIWindow.

To put it simply, you can use a ViewController or similar to return .none in the editingInteractionConfiguration, and make that ViewController the firstResponder.
If not ViewController, AppDelegate or UIView may also work.
FirstResponder is an object that first receives events other than touch, so if there is an object inheriting from UIResponder that handles keyboard input, make it the firstResponder and editingInteractionConfiguration should be implemented.

An example in Objective-C is shown below; Swift users can draw an analogy from here.

Translated with www.DeepL.com/Translator (free version)

ViewController

// becomeFirstResponder returns "NO" in "viewDidLoad".
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self becomeFirstResponder];
}

- (BOOL)canBecomeFirstResponder
{
    return YES;
}

- (UIEditingInteractionConfiguration)editingInteractionConfiguration
{
    return UIEditingInteractionConfigurationNone;
}

You may also like...