Devices: SwiftUI Previews for 15.5 and 16.0 (and maybe more)
Any related GitHub issues:
Describe the bug
Since adding .backport.task { await someAsyncWork() } to my SwiftUI views, XCPreviewAgent crashes. Removing the modifier again makes the preview appear.
Steps to reproduce
Implement the task modifier on a SwiftUI view in Xcode and observe that the preview agent crashes.
General Information
Project version: 1.8.2
Platform/OS version: 16.0
IDE version: Xcode 14
Devices: SwiftUI Previews for 15.5 and 16.0 (and maybe more)
Any related GitHub issues:
Describe the bug
Since adding
.backport.task { await someAsyncWork() }
to my SwiftUI views, XCPreviewAgent crashes. Removing the modifier again makes the preview appear.Steps to reproduce
Implement the task modifier on a SwiftUI view in Xcode and observe that the preview agent crashes.
Expected behavior
The preview works.
Stack trace, compiler error, code snippets