case insensitve search

This commit is contained in:
Garth Vander Houwen 2023-08-21 23:03:30 -07:00
parent ce90dfa598
commit 51813cbd86

View file

@ -19,7 +19,7 @@ struct NodeList: View {
searchText
} set: { newValue in
searchText = newValue
nodes.nsPredicate = newValue.isEmpty ? nil : NSPredicate(format: "user.longName CONTAINS %@", newValue)
nodes.nsPredicate = newValue.isEmpty ? nil : NSPredicate(format: "user.longName CONTAINS[c] %@", newValue)
}
}