Skip to content

Conversation

hbugdoll
Copy link
Contributor

@hbugdoll hbugdoll commented Sep 30, 2025

Fixes #14211.

Description:

  • 951877b created a new issue setting navTintColor for a tab group, not for window
    • in this case newColor was set to a new object and was unretained when later released
  • fixed ref counting through use of a temporary object newTintColor inside the block to hold newColor
  • additionally fixed a potential memory leak by also releasing newColor if controller == nil

Successfully tested with both code examples #14211 (comment) and #13917 (comment) in simulator.

@m1ga
Copy link
Contributor

m1ga commented Sep 30, 2025

Functional test: I've tested both examples and I don't see any crash with this PR 👍

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.

iOS: setting TabGroup navTintColor will crash on start

2 participants