AuthStateChangesSequence
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
struct AuthStateChangesSequence : AsyncSequence, @unchecked SendableAn AsyncSequence that emits User? values whenever the authentication state changes.
This struct is the concrete type returned by the Auth.authStateChanges property.
-
Declaration
Swift
public typealias Element = User? -
Declaration
Swift
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) public typealias Failure = Never -
Declaration
Swift
public typealias AsyncIterator = Iterator -
The asynchronous iterator for
AuthStateChangesSequence.Declaration
Swift
public struct Iterator : AsyncIteratorProtocolextension Auth.AuthStateChangesSequence.Iterator: Sendable