Yeah, I just ran into this (or at least, I think it's the same problem). You can also make the environmental URL a binding, so you can clear it in the onChange(of:) handler.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: