Swift – Check if array contains element with property [duplicate] May 29, 2023 by Tarik Yes, if things.contains(where: { $0.someProperty == "nameToMatch" }) { // found } else { // not }