Skip to content

Commit b172032

Browse files
author
David Dunn
committed
Stub out new KeyPath APIs in NSSortDescriptor
1 parent f550ea6 commit b172032

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Foundation/NSSortDescriptor.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ open class NSSortDescriptor: NSObject, NSSecureCoding, NSCopying {
3535

3636
open var key: String? { NSUnimplemented() }
3737
open var ascending: Bool { NSUnimplemented() }
38+
var keyPath: AnyKeyPath? { NSUnimplemented() }
3839

3940
open func allowEvaluation() { NSUnimplemented() } // Force a sort descriptor which was securely decoded to allow evaluation
4041

4142
public init(key: String?, ascending: Bool, comparator cmptr: Comparator) { NSUnimplemented() }
43+
convenience init<Root, Value>(keyPath: KeyPath<Root, Value>, ascending: Bool) { NSUnimplemented() }
44+
convenience init<Root, Value>(keyPath: KeyPath<Root, Value>, ascending: Bool, comparator cmptr: @escaping Comparator) { NSUnimplemented() }
4245

4346
open var comparator: Comparator { NSUnimplemented() }
4447

0 commit comments

Comments
 (0)