Computed property as in predicates, and as sortProperty in RealmSearchViewController?
问题 I have a realm object Song with dynamic var title = "" . I've written a computed property, sortedName that sorts out any pesky prefixes like "The " or parentheses and punctuation. I want my RealmSearchViewController to use sortedName as its sortProperty but this is throwing the error: "Property 'sortedName' not found in object of type 'Song'" I get the same error when using sortedName in predicates (such as if results.objects(with: NSPredicate(format: "sortedName BEGINSWITH %@", key)).count >