Travis, it's just enough to run the code snippet to see the issue, clearly and immediately even on iPhone simulator running iOS 27 (24A434).
Just tap the search button and then try to deactivate search by pressing the close button, here is requested screen recording:
https://share.icloud.com/photos/03dvDC6bRisUbR2E9Z0XP9DcA
And screenshot:
The debugger is not attached.
The issue does not seem to reproduce on iPadOS 27.
Topic:
UI Frameworks
SubTopic:
SwiftUI