Skip to content

Fix iOS 26 swipe-back conflict with horizontal Compose scrollables#3116

Open
Vendula Švastalová (svastven) wants to merge 10 commits into
jb-mainfrom
svastven/CMP-9869
Open

Fix iOS 26 swipe-back conflict with horizontal Compose scrollables#3116
Vendula Švastalová (svastven) wants to merge 10 commits into
jb-mainfrom
svastven/CMP-9869

Conversation

@svastven

@svastven Vendula Švastalová (svastven) commented Jun 11, 2026

Copy link
Copy Markdown

Handles the iOS 26 full-width UINavigationController.contentSwipe gesture recognizer, which is backed by a private UIScreenEdgePanGestureRecognizer subclass and can conflict with horizontal Compose scrollables such as HorizontalPager.

Fixes https://youtrack.jetbrains.com/issue/CMP-9869

Testing

Adds UIKitNavigationContentSwipeTest test suite covering that swiping over HorizontalPager does not pop the controller while swiping outside the pager still pops it.

Release Notes

Fixes - iOS

  • Fix swipe-back gesture conflict with horizontally scrollable components like HorizontalPager.

}
}

fun createRootViewController(

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It depends on the useHostingView parameter passed to UIKitInstrumentedTest. I have added this together with the setupWindow function, so that most (all) tests can use the UIKitInstrumentedTest base.

@svastven Vendula Švastalová (svastven) force-pushed the svastven/CMP-9869 branch 2 times, most recently from 813d9d6 to ef50023 Compare June 13, 2026 00:00
@svastven Vendula Švastalová (svastven) force-pushed the svastven/CMP-9869 branch 4 times, most recently from 5bc0127 to 0d29ce2 Compare June 15, 2026 10:38
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.

2 participants