Annotating writeContents with nonisolated appears to resolve this issue. However, as a Swift6 newbie, I’m not sure why there isn’t compile-time enforcement of the nonisolated requirement for writeContents.
Topic:
UI Frameworks
SubTopic:
UIKit