Skip to content

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

Open
pwltr wants to merge 1 commit intomasterfrom
fix/swipe-to-back
Open

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

Conversation

@pwltr
Copy link
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
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

1 participant