silence warnings on ObjectSnapshot sendability

This commit is contained in:
John Estropia
2023-07-18 16:02:32 +09:00
parent 320c6145f8
commit 30d5e0a64a

View File

@@ -40,7 +40,7 @@ import AppKit
The `ObjectSnapshot` is a full copy of a `DynamicObject`'s properties at a given point in time. This is useful especially when keeping thread-safe state values, in ViewModels for example. Since this is a value type, any changes in this `struct` does not affect the actual object.
*/
@dynamicMemberLookup
public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable, Sendable {
public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable, @unchecked Sendable {
// MARK: Public