Predicate and SortDescriptor in Swift 3

2.2k Views Asked by At

I can't find anything about this in the release notes or on swift.org, but what they're gone now. What happened to them in the Xcode Beta 4?

1

There are 1 best solutions below

0
On

NSPredicate and NSSortDescriptor are still around in Xcode 8 beta 4; they've just got their "NS" back after losing it in previous betas.

According to SE-0086, which covers dropping the "NS" prefix from certain Foundation types in Swift 3, NSPredicate is an example of the set of types keeping "NS" because they're likely to be replaced by value types in the not too distant future. NSSortDescriptor isn't given as an example in that proposal, but it's easy to image that it might fall into the same group.