Sendable
Conformance
#231
Labels
feature request
A feature has been asked for or suggested by the community
Sendable
Conformance
#231
Checklist
Describe the problem you'd like to have solved
Creating a stored property of type
SimpleKeychain
in a final class conforming toSendable
produces a compile time error in Swift 6. Here'e the minimum code:The above code produces the error:
Describe the ideal solution
SimpleKeychain
should be reviewed against Swift 6 concurrency checks and be marked Sendable.The above minimum code should compile in Swift 6.
Alternatives and current workarounds
I can add
@preconcurrency
to the import statement to silent all errors and warnings, but this is not ideal and simply hides the issues and data-race risks.Additional context
I'm trying to use SimpleKeychain in a class that handles storing and retrieving all sensitive strings in Keychain.
The text was updated successfully, but these errors were encountered: