fix(swift-ios): restore thread scrolling and back swipe #6090
Mergedsaphid(GitHub profile, opens in a new tab)merged 4 commits into
t3code/rebuild-mobile-app-swift fromrefs/pull/6090/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/swift-ios/Features/Chat/ThreadDetailView.swift line 1511Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1284,0 +1481,21 @@1481+ surface: owner,1482+ host: gestureHost1483+ )1484+ else { return false }1485+ return true1486+ }1487+1488+ func gestureRecognizer(1489+ _ gestureRecognizer: UIGestureRecognizer,1490+ shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer1491+ ) -> Bool {1492+ if otherGestureRecognizer is UIScreenEdgePanGestureRecognizer {1493+ return true1494+ }1495+ guard let scrollView = otherGestureRecognizer.view as? UIScrollView else {1496+ return false1497+ }1498+ return ThreadBackSwipeGesture.shouldAllowSimultaneousRecognition(1499+ with: scrollView1500+ )1501+ }
t3-code-bot[bot](GitHub profile, opens in a new tab) requested changes
apps/swift-ios/Features/Chat/ThreadDetailView.swift line 1505Resolvedby saphid(GitHub profile, opens in a new tab)@@ -1284,0 +1485,21 @@1485+ shouldReceive touch: UITouch1486+ ) -> Bool {1487+ guard let owner,1488+ let gestureHost = owner.gestureHost,1489+ ThreadBackSwipeGesture.shouldReceiveTouch(1490+ touch,1491+ surface: owner,1492+ host: gestureHost1493+ )1494+ else { return false }1495+ return true1496+ }1497+1498+ func gestureRecognizer(1499+ _ gestureRecognizer: UIGestureRecognizer,1500+ shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer1501+ ) -> Bool {1502+ if otherGestureRecognizer is UIScreenEdgePanGestureRecognizer {1503+ return true1504+ }1505+ guard let scrollView = otherGestureRecognizer.view as? UIScrollView else {t3-code-bot[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
93fddb2b-94a6-43a9-944c-6b4431d05377You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share