From 84d894d4d674578e8aed51e67e5987406b7e8bdc Mon Sep 17 00:00:00 2001 From: Dave Marquard Date: Sat, 24 Oct 2026 17:05:30 -0700 Subject: [PATCH] Let a left-edge swipe reveal the timeline over an article The article is a UIPageViewController, and a no-op pan recognizer on its internal scroll view refuses simultaneous recognition within 40pt of the left edge, so swiping from there doesn't page back and navigate back at the same time. It refused every other recognizer there too, including the split view's reveal gesture. The swipe did nothing over the article while it still worked alongside the toolbars, where the page view controller isn't under the touch. Narrow the refusal to the page view controller's own pan. Paging is still held back near the edge, and everything else gets the touch. Found on an unfolded iPhone Duo, where the article fills a 669pt-wide expanded split view and the timeline is otherwise only reachable from the sidebar button. Written with help from Claude Code. --- iOS/Article/ArticleViewController.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index cefb42590..baddd1041 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -576,11 +576,13 @@ extension ArticleViewController: UIGestureRecognizerDelegate { } func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { - let point = gestureRecognizer.location(in: nil) - if point.x > 40 { + // Paging is the only thing to hold back near the left edge. Refusing every other + // recognizer there also blocked the split view's reveal gesture, so an edge swipe + // did nothing over the article while it still worked alongside the toolbars. + guard otherGestureRecognizer === pageViewController.scrollViewInsidePageControl?.panGestureRecognizer else { return true } - return false + return gestureRecognizer.location(in: nil).x > 40 } }