keyPath

The key path to the field for comparison.

iOS
16.4+
macOS
13.3+
tvOS
16.4+
watchOS
9.4+
var keyPath: PartialKeyPath<Compared>? { get }

This value is nil when Compared is not an NSObject