修改pods

This commit is contained in:
2025-09-20 17:13:38 +08:00
parent 7787b3ee30
commit 28ff2b0264
5251 changed files with 345029 additions and 285168 deletions

View File

@@ -55,7 +55,7 @@ public enum DecodingFailureStrategy {
///
/// `FirestoreQuery` also supports returning a `Result` type. The `.success` case
/// returns an array of elements, whereas the `.failure` case returns an error
/// in case mapping the Firestore docments wasn't successful:
/// in case mapping the Firestore documents wasn't successful:
///
/// struct ContentView: View {
/// @FirestoreQuery(
@@ -135,7 +135,7 @@ public struct FirestoreQuery<T>: DynamicProperty {
/// If any errors occurred, they will be exposed here as well.
public var error: Error?
/// The type of animation to apply when updating the view. If this is ommitted then no
/// The type of animation to apply when updating the view. If this is omitted then no
/// animations are fired.
public var animation: Animation?
}
@@ -143,12 +143,12 @@ public struct FirestoreQuery<T>: 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
}

View File

@@ -47,7 +47,7 @@ class FirestoreQueryObservable<T>: ObservableObject {
self.configuration = configuration
setupListener = createListener { [weak self] querySnapshot, error in
guard let self = self else { return }
if let error = error {
if let error {
self.animated {
self.items = []
self.projectError(error)
@@ -104,7 +104,7 @@ class FirestoreQueryObservable<T>: ObservableObject {
self.configuration = configuration
setupListener = createListener { [weak self] querySnapshot, error in
guard let self = self else { return }
if let error = error {
if let error {
self.animated {
self.items = .failure(error)
self.projectError(error)