Indeed, you can transfer data from iPhone to Mac mostly with iCloud. Send the files to the cloud and then sign in your Apple ID to the iCloud web page and you can import them to your Mac.
Here are some examples for you:
How to Transfer photos from iPhone to Mac
How to Transfer videos from iPhone to Mac
Or you may like to use 3rd party tool, such as
iOS Transfer.