A sheet refuse to dismiss after a network save, but only when the request was slow on a real device?
A SwiftUI sheet fails to dismiss after a network save when the request is slow on a real device. The root cause is calling dismiss inside an async callback — on fast Wi-Fi it works, but under high latency the parent view updates from another state change first, leaving the dismiss call targeting a stale presentation context.
•1m watch time
Sort: