Isn't that natively supported? I thought you could use your iPhone as side display for your Mac.
EDIT: Yes, the feature is called Sidecar.
Sidecar works to extend your Mac's display to iPads but does not work on iPhones.
[dead]
Sidecar works to extend your Mac's display to iPads but does not work on iPhones.