SwiftUI and Combine utilities appledocs. Bump up to 8.0 and iOS 11.0/macOS 10.13

This commit is contained in:
John Estropia
2021-03-01 09:14:41 +09:00
parent d13b0cfabb
commit 1f97225efa
12 changed files with 669 additions and 150 deletions

View File

@@ -174,21 +174,6 @@ extension ObjectSnapshot where O: NSManagedObject {
self.values[key] = newValue
}
}
// MARK: Deprecated
@available(*, deprecated, message: "Accessing the property directly now works")
public func value<V: AllowedObjectiveCKeyPathValue>(forKeyPath keyPath: KeyPath<O, V>) -> V! {
return self[dynamicMember: keyPath]
}
@available(*, deprecated, message: "Mutating the property directly now works")
public mutating func setValue<V: AllowedObjectiveCKeyPathValue>(_ value: V!, forKeyPath keyPath: KeyPath<O, V>) {
self[dynamicMember: keyPath] = value
}
}