I fixed it by making the paste function async, and calling it in a Task {}.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: