Question: how to transfer your contacts to your mac?
Answer: On your iPhone, go to Settings > [your name] > iCloud. Turn on Contacts. Tap Merge. Then on your Mac, click on the Apple menu in the top left-hand corner. Click System Preferences > iCloud. Switch on the toggle next to Contacts.