Did you add the delay so the compiler doesn't complain about publishing changes while updating the view?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: