[Solved] How to fetch contacts NOT named “John” with Swift 3 [closed]

Before I outline how to find those that don’t match a name, let’s recap how one finds those that do. In short, you’d use a predicate: let predicate = CNContact.predicateForContacts(matchingName: searchString) let matches = try store.unifiedContacts(matching: predicate, keysToFetch: [CNContactFormatter.descriptorForRequiredKeys(for: .fullName)]) // use whatever keys you want (Obviously, you’d wrap that in a do–try–catch construct, or … Read more