Skip to content

Queue tab selections during active transitions#125

Open
johnsmith507 wants to merge 1 commit into
marcosgriselli:masterfrom
johnsmith507:codex/swipeable-queued-transition-fix
Open

Queue tab selections during active transitions#125
johnsmith507 wants to merge 1 commit into
marcosgriselli:masterfrom
johnsmith507:codex/swipeable-queued-transition-fix

Conversation

@johnsmith507

@johnsmith507 johnsmith507 commented May 13, 2026

Copy link
Copy Markdown

Summary

  • Queue tab index changes requested while UIKit is still completing a tab transition
  • Apply only the latest queued selection after the active transition coordinator finishes
  • Preserve rapid tap and swipe requests that currently arrive during a transition and get dropped
  • Add an example-app stress launch argument and UI regression for the timer-driven selectedIndex race from Very quick swipes cause app to freeze #52

Fixes #52.

Validation

  • git diff --check
  • swiftc -typecheck -sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" -target arm64-apple-ios12.0-simulator -module-name SwipeableTabBarController SwipeableTabBarController/*.swift
  • swiftlint lint --config .swiftlint.yml SwipeableTabBarController/SwipeableTabBarController.swift
  • xcodebuild test -project Example.xcodeproj -scheme Example -destination 'id=6BC14400-3B60-4343-9DA9-4AF5A72350AC' -derivedDataPath /tmp/swipeable-dd -resultBundlePath /tmp/swipeable-ui.xcresult -only-testing:ExampleUITests/SwipeableTabBarControllerUITests/testRapidProgrammaticTransitionsRemainInteractive

IssueHunt: https://oss.issuehunt.io/r/marcosgriselli/SwipeableTabBarController/issues/52


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


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.

Very quick swipes cause app to freeze

1 participant