// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Foundation /// A snapshot of the items from DataStore, the changes since last snapshot, and whether this model has /// finished syncing and subscriptions are active public struct DataStoreQuerySnapshot { /// All model instances from the local store public let items: [M] /// Indicates whether all sync queries for this model are complete, and subscriptions are active public let isSynced: Bool public init(items: [M], isSynced: Bool) { self.items = items self.isSynced = isSynced } } extension DataStoreQuerySnapshot: Sendable { }