You’re right in that TSMC / Samsung were for many years behind the state of the art, and by extension so was the technology that Apple was using. Apple’s CPUs defined the state of the art for mobile though.
And now of course TSMC / Apple haven’t caught up, they have surpassed comparable offerings from Intel.
And now of course TSMC / Apple haven’t caught up, they have surpassed comparable offerings from Intel.