Skip to content

Commit d1b2327

Browse files
committed
Update availability specification
1 parent cd48b85 commit d1b2327

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Firestore/Swift/Source/AsyncAwait/DocumentReference+AsyncSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public extension DocumentReference {
2626
/// An asynchronous sequence of document snapshots.
2727
///
2828
/// This stream emits a new `DocumentSnapshot` every time the underlying data changes.
29-
@available(iOS 18.0, *)
29+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3030
var snapshots: some AsyncSequence<DocumentSnapshot, Error> {
3131
return snapshots(includeMetadataChanges: false)
3232
}
@@ -35,7 +35,7 @@ public extension DocumentReference {
3535
///
3636
/// - Parameter includeMetadataChanges: Whether to receive events for metadata-only changes.
3737
/// - Returns: An `AsyncThrowingStream` of `DocumentSnapshot` events.
38-
@available(iOS 18.0, *)
38+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3939
func snapshots(includeMetadataChanges: Bool) -> some AsyncSequence<DocumentSnapshot, Error> {
4040
return AsyncThrowingStream { continuation in
4141
let listener = self

Firestore/Swift/Tests/Unit/AsyncAwait/AsyncSequenceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private class MockDocumentReference: DocumentReference {
6666

6767
// MARK: - AsyncSequenceTests
6868

69-
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
69+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
7070
class AsyncSequenceTests: XCTestCase {
7171
func testQuerySnapshotsYieldsValues() async throws {
7272
let mockQuery = MockQuery()

0 commit comments

Comments
 (0)