-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
closing soonThis issue will be closed in 7 days unless further comments are made.This issue will be closed in 7 days unless further comments are made.coreAmplify Core componentsAmplify Core componentsfeature-requestRequest a new featureRequest a new featurefollow upRequires follow up from maintainersRequires follow up from maintainers
Description
Describe the bug
Regarding using Amplify.Auth
in SwiftUI with Swift 5.10, there will be warnings over all the place because some of the Auth's classes, protocols, etc. are not actor'ized.
This will lead to compilation errors in Swift 6 but currently there will be a lot of warnings that may break CI checks for warning threshold.
If this can be solved in the client app, please let me know.
Steps To Reproduce
Steps to reproduce the behavior:
1. Create a SwiftUI project
2. Embed `2.36.0` of Amplify iOS SDK
3. Use methods like `_ = await Amplify.Auth.signOut()`
4. See warnings (Swift 5) or errors (Swift 6)
> Non-sendable type 'any AuthSignOutResult' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
Expected behavior
Amplify.Auth works fine with SwiftUI, actors
Amplify Framework Version
2.36.0
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5.10
CLI version
not installed - iOS only
Xcode version
Version 15.4 (15F31d)
Relevant log output
<details>
<summary>Log Messages</summary>
No logs
</details>
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17
Device
all
Specific to simulators
no
Additional context
No response
Somberland, Gregro, kparichan, bcarey-transmedics and amolon615
Metadata
Metadata
Assignees
Labels
closing soonThis issue will be closed in 7 days unless further comments are made.This issue will be closed in 7 days unless further comments are made.coreAmplify Core componentsAmplify Core componentsfeature-requestRequest a new featureRequest a new featurefollow upRequires follow up from maintainersRequires follow up from maintainers