-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting SDK name with Apple's Framework name: Task modifier #1201
Comments
@cocoahero this is a pretty tricky issue, causing build errors for anyone using async commands in Swift with the I know it's annoying, but if this could be renamed to something like |
FWIW - My work around for this is to do the following in my app. But I agree that another name should be chosen here.
|
Hi,
I'm trying to run an asynchronous task in SwiftUI, however, I'm failing to do so because the SDK is using the same name as Apple's framework. You structure your code as follows in swift to run an asynchronous task:
The conflict arises from this file Graph.Task.swift . It has the following protocol definition:
My error then becomes: 'any Task' cannot be constructed because it has no accessible initializers
The text was updated successfully, but these errors were encountered: