From 738a819e69c9ae861bf03592f0493002308eb672 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Fri, 22 Nov 2024 11:30:27 -0500 Subject: [PATCH] [Firestore] Label '@MainActor' isolated APIs of 'FirestoreQuery' --- Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift b/Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift index de3716856bc..ff78b68e509 100644 --- a/Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift +++ b/Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift @@ -143,12 +143,12 @@ public struct FirestoreQuery: DynamicProperty { /// The results of the query. /// /// This property returns an empty collection when there are no matching results. - public var wrappedValue: T { + @MainActor @preconcurrency public var wrappedValue: T { firestoreQueryObservable.items } /// A binding to the request's mutable configuration properties - public var projectedValue: Configuration { + @MainActor @preconcurrency public var projectedValue: Configuration { get { firestoreQueryObservable.configuration }