A SwiftUI bug where a sheet stopped updating after a dependency injection refactor is explained. The root cause was that the sheet was presented from a different branch of the view tree that didn't inject the required environment object, causing it to hold onto a stale instance. The fix involved injecting the dependency at the
•1m watch time
Sort: