Skip to content

Conversation

@jfversluis
Copy link
Member

Description of Change

Adds a check to see if the value is actually different and only apply the change when it is different. It seems that for iOS 26 a change has been made that setting the TabBarHidden property now causes ViewWillLayoutSubviews to be triggered, which in turns updates the TabBarHidden causing an infinite loop. This change prevents that.

Since its a good thing to check anyway, not making this specific to iOS 26, although we could to be on the safe side

@jfversluis jfversluis added this to the .NET 10.0-rc1 milestone Aug 13, 2025
Copilot AI review requested due to automatic review settings August 13, 2025 11:20
@jfversluis jfversluis added the platform/macos macOS / Mac Catalyst label Aug 13, 2025
@jfversluis jfversluis requested a review from a team as a code owner August 13, 2025 11:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an infinite loop issue in iOS 26 where setting the TabBarHidden property triggers ViewWillLayoutSubviews, which in turn calls UpdateTabBarHidden() again. The fix adds a simple value comparison check to prevent unnecessary property updates when the value hasn't actually changed.

  • Adds early return when TabBarHidden already matches the desired state
  • Prevents infinite loop by avoiding redundant property assignments
  • Applied broadly rather than iOS 26-specific for general defensive programming
Comments suppressed due to low confidence (1)

@jfversluis jfversluis added the p/0 Current heighest priority issues that we are targeting for a release. label Aug 13, 2025
@jfversluis jfversluis requested a review from PureWeen August 13, 2025 11:34
@PureWeen PureWeen merged commit f312eb3 into net10.0 Aug 14, 2025
127 of 129 checks passed
@PureWeen PureWeen deleted the jfversluis-patch-5 branch August 14, 2025 02:31
@PureWeen
Copy link
Member

/backport main

@jfversluis
Copy link
Member Author

/backport to main

@github-actions
Copy link
Contributor

@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2025
@jfversluis
Copy link
Member Author

/backport to release/9.0.1xx-sr8

@github-actions github-actions bot unlocked this conversation Sep 24, 2025
@github-actions
Copy link
Contributor

Started backporting to release/9.0.1xx-sr8: https://github.com/dotnet/maui/actions/runs/17976094094

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

p/0 Current heighest priority issues that we are targeting for a release. platform/ios platform/macos macOS / Mac Catalyst

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants