Skip to content

fix: defer tabbar menu presentation#15

Closed
lynnswap wants to merge 2 commits intomainfrom
bugfix/defer-tabbar-menu-presentation
Closed

fix: defer tabbar menu presentation#15
lynnswap wants to merge 2 commits intomainfrom
bugfix/defer-tabbar-menu-presentation

Conversation

@lynnswap
Copy link
Owner

@lynnswap lynnswap commented Jan 30, 2026

Summary:

  • Compute menu placement at presentation time to avoid stale layout
  • Present menus on a best-effort basis and skip presentation while a tab transition is active
  • Add tests covering pending cancellation, stale presentations, and missing window cases

Testing:

  • xcodebuild test -scheme TabBarMenu-Package -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.2'

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e00a8baa04

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@claude
Copy link

claude bot commented Jan 30, 2026


Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


@lynnswap
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a9e4bfb54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a9e4bfb54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a9e4bfb54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +512 to 516
menu: presentation.menu,
placementProvider: placementProvider
)
scheduleMenuPresentation(menuRequest)
return true

Choose a reason for hiding this comment

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

P2 Badge Allow selection when scheduled menu never presents

This method always returns true after scheduling, but handleMoreSelection treats that as “menu presented” and cancels the system selection. If presentMenuWhenStable later bails out (e.g., context.containerView.window == nil or transitionCoordinator != nil), no menu appears and the user’s tap is ignored. Consider returning false (or deferring the decision) when the presentation is skipped so the default More tab selection can proceed in those cases.

Useful? React with 👍 / 👎.

@lynnswap lynnswap closed this Jan 30, 2026
@lynnswap lynnswap deleted the bugfix/defer-tabbar-menu-presentation branch January 30, 2026 15:08
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.

1 participant