I solved my issue by running the perform on the @MainActor.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: