Skip to content

Conversation

StuSharpe
Copy link

Addresses #313

This change re-instates the original thread-hop before nilling out dismiss closure that was present in 2.5.0, for the non-UIAlertController case.

See 2.5.0...2.5.1

This fixes the issue, but I don't really have any clarity on why. Some quirk with the Xcode 26 toolset.

…-UIAlertController cases that was present in 2.5.0, fixes crash when building with XCode 26
@StuSharpe
Copy link
Author

StuSharpe commented Oct 3, 2025

@acosmicflamingo - keen for your opinion on this

@StuSharpe
Copy link
Author

Tested on:

  • Xcode 16.4
  • Xcode 26.0.1
  • iOS 18.5 Simulator & iOS 18.6 (iPhone 11 Pro)
  • iOS 26.0 (Simulator & Phone 15 Pro)

@acosmicflamingo
Copy link
Contributor

Interesting...I wonder if this has an impact on TCA apps that display alerts via state navigation. I'm not by my keyboard so I can't verify. What a find!

@StuSharpe
Copy link
Author

StuSharpe commented Oct 3, 2025

Have tried in my own TCA app, and the alerts and confirmation dialogs still seem to work as expected. The codepath for this shouldn't affect the 2.5.1 behavior.

Would be great verify on another TCA code base though.

@StuSharpe
Copy link
Author

Hmm, it's a bit hard to fully validate in TCA without this PR included as things keep getting dismissed: #310

@acosmicflamingo Maybe we should wait until your other PR is merged in.

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