Relative Content

Tag Archive for async-awaitsendableswift6

How to handle Non Sendable Struct in Async/Await?

I have a View that can let the User pick an Image. I bind the PhotoPicker to “item” a PhotoPickerItem. But in the “getImage” Function i get an error: “Sending ‘photoPickerItem.some’ risks causing data races”.