I've searched pretty thoroughly to no avail. I can't quite figure out why this statement isn't working. I'm trying to filter objects where the truckVIN contains the srchString.
Is this statement actually checking "Optional(..." instead of just "hl3"?
I appreciate the help!
let truckVIN = item.valueForKey(x.type.uppercaseString) as! String
let srchString = x.name
if srchString.characters.count < truckVIN.characters.count {
if truckVIN.uppercaseString.containsString(srchString.uppercaseString) {
repeatFilTrucks.append(item)
}
}