dekatotoro / dekatotoro/SlideMenuControllerSwift

Add an option to only allow edge pan gesture?

Open
#274 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
3.4k
Forks
742
PR merge metrics
No merged PRs in 30d

Description

In my app, users can already swipe to the left with two fingers to use some functionality. This conflicts with the slide menu's `rightPanGesture`. Sure I can set `maximumNumberOfTouches` to 1 so swiping with 1 finger opens the menu and swiping with 2 fingers does the other thing but the user might get confused by this 1 finger 2 fingers thingy. So I just want to use an `UIEdgePanGestureRecognizer` to open the slide menu. Is there a way to do that other than adding a recognizer manually and calling `openRight`?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing `rightPanGesture` handling and how it invokes `openRight`; compare that path with the requested `UIEdgePanGestureRecognizer` behavior. Done means the slide menu can be configured to open from an edge pan without conflicting with the app’s two-finger swipe, while preserving the existing gesture option.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.