Apple designs chips they don't make them so the credit for 5nm goes to the foundries like TSMC.
7 nm process - Wikipedia
wikipedia.org
What's really silly is assume a single stat tells the whole story. Transistor density is what matters most. Intel's 10nm x86 is twice as dense as 10nm ARM & still more than 7nm ARM. While chip benchmarking is like dick measuring as it doesn't indicate actual performance in real world tasks.
I wouldn’t say density matters most, unless you are talking about SRAM structures like caches. For logic, we intentionally space devices out (for bypass cap, IR drop issues, thermal issues, DFM issues, etc). And the last time I checked the design rules, Intel’s 10nm has almost identical minimum spacing rules to the latest node from TSMC on 7nm. In my entire career designing CPUs I can’t think of a single time I used a minimum sized transistor, so in the real world the fact that an Intel minimum size transistor is a tad bit smaller than a TSMC minimum size transistor matters not one iota.