Estimated 1-3% developers of developers I worked with run MacOS. Maybe it is a local or SV thing, but most I know prefer the freedom. In the industry I work there aren't many tools for Apple ecosystems available.
IBM has nearly all of it's developers on Mac at this point. I came from using exclusively linux for 10+ years and have decided to switch my personal machine to a Mac and my phone to an iPhone because it's been so good.
Mac has everything I liked about Linux but with zero cognitive overhead. With brew and a window manager (amethyst) I'm not missing any features I enjoyed in Linux.
I hope that changes with the acquisition of Red Hat. I think they did it to help Red Hat, but they also wanted to buy the community of developers in my opinion.
edit: https://insights.stackoverflow.com/survey/2018/
It is quite high and to correct myself: Some developers have a Mac for iOS development. Most people I know hate it.