Saturday, October 10, 2026
HomeiOS Developmentswift - How can I disable 3 finger faucet/swipe gestures out there...

swift – How can I disable 3 finger faucet/swipe gestures out there since iOS 13+ in my Flutter sport?

[ad_1]

I’ve a Flutter sport and it isn’t unlikely {that a} person places 3 fingers on the display. iOS 13.0 launched three finger faucet to open an edit menu and three finger swipe left/proper to undo/redo. I need to disable this function for the entire app.

What I discovered from Google search outcomes is that this may be managed by the editingInteractionConfiguration property that many courses inherit from UIResponder.

In UIResponder it’s outlined like this:

@interface UIResponder : NSObject <UIResponderStandardEditActions>

// ...

// Productiveness modifying interplay help for undo/redo/reduce/copy/paste gestures
@property (nonatomic, readonly) UIEditingInteractionConfiguration editingInteractionConfiguration API_AVAILABLE(ios(13.0));

@finish

---

@out there(iOS 13.0, *)
public enum UIEditingInteractionConfiguration : Int, @unchecked Sendable {
    case none = 0
    case `default` = 1 // Default
}

I am no Swift professional and my makes an attempt to set this to none had been including the override under to my AppDelegate that inherits from UIResponder and overriding it within the FlutterViewController but it surely didn’t work:

// Class assigned in principal storyboard view controller
class GameFlutterVC:FlutterViewController {
    override func viewWillAppear(_ animated: Bool) {
        print("This will get printed.");
        tremendous.viewWillAppear(animated)
    }
    
    // Disable 3 finger faucet gesture on iPad (not working)
    @out there(iOS 13.0, *)
    override var editingInteractionConfiguration: UIEditingInteractionConfiguration { .none }
}

(utilizing code from https://www.hackingwithswift.com/example-code/uikit/how-to-disable-undo-redo-copy-and-paste-gestures-using-editinginteractionconfiguration)

Any thought what I’m doing unsuitable?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments