Skip to content

fix(ui): re-enable swipe-to-back gesture#491

Merged
pwltr merged 1 commit intomasterfrom
fix/swipe-to-back
Mar 17, 2026
Merged

fix(ui): re-enable swipe-to-back gesture#491
pwltr merged 1 commit intomasterfrom
fix/swipe-to-back

Conversation

@pwltr
Copy link
Copy Markdown
Contributor

@pwltr pwltr commented Mar 13, 2026

Description

We are using a custom NavigationBar and hiding the system bar with .navigationBarHidden(true) on each screen. In SwiftUI, that hides the UINavigationController’s navigation bar. The interactive pop gesture (swipe from the left edge) is managed by that same navigation controller, and when the bar is hidden the system disables that gesture. This re-enables the interactive pop gesture by configuring the underlying UINavigationController and allows the gesture when there is more than one view controller on the stack, except when explicitly disabled with by using .allowSwipeBack(false)

Linked Issues/Tasks

Closes #423

Screenshot / Video

Simulator.Screen.Recording.-.iPhone.17.-.2026-03-13.at.14.31.48.mov

QA Notes

  • check for quirks/freezes
  • should only be able to navigate back on screens that have a back button

@pwltr pwltr self-assigned this Mar 13, 2026
@pwltr pwltr added this to the 2.2.0 milestone Mar 13, 2026
@pwltr pwltr enabled auto-merge (squash) March 17, 2026 17:37
Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tAck

was missing this so much, thx! 🙌🏻

@pwltr pwltr merged commit 39e2f4b into master Mar 17, 2026
22 of 32 checks passed
@pwltr pwltr deleted the fix/swipe-to-back branch March 17, 2026 19:27
pwltr added a commit that referenced this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Swipe to go back not working

3 participants