I have an NSArray of objects with the following properties
@objc class Dummy: NSObject {
let propertyOne: Int
let propertyTwo: Int
let propertyThree: NSDictionary
}
In propertyThree
, it will have certain key values pairs such as
keyOne => valueOne
keyTwo => valueTwo
keyThree => valueThree
I want to filter through my NSArray of Dummy Objects based off of keyOne
of the NSDictionary
that is a property of the Dummy
object.
How would I go about doing this? I looked through:
- Using NSPredicate to filter an NSArray based on NSDictionary keys
- Filtering NSArray of NSDictionary objects using NSPredicate
But it doesn't seem applicable.