The market share of macOS is quite stable though and if anything, has been growing. And you could argue about the segments it actually competes in.
The market share of iOS is far from a minority share in many markets.