title: How to fetch contact list from iPhone in swift 4?
body: <p>Here is my code to fetch contact list: </p>
  
  <pre><code>let contactStore = CNContactStore()
      let keys = [CNContactPhoneNumbersKey, CNContactFamilyNameKey, CNContactGivenNameKey, CNContactNicknameKey, CNContactPhoneNumbersKey]
      let request1 = CNContactFetchRequest(keysToFetch: keys  as [CNKeyDescriptor])
  
      try? contactStore.enumerateContacts(with: request1) { (contact, error) in
          for phone in contact.phoneNumbers {
              // Whatever you want to do with it
          }
      }
  </code></pre>