It does not apply to the UK.
In the UK, the trick is to make a claim under consumer law. If you have a well-documented case of a persistent fault that is not resolved by the retailer despite repeat attempts (such as the butterfly keyboard faults), you can claim for a full refund of the original purchase through the small claims court. It takes a bit of work but if your claim is legit, Apple will almost certainly just pay it rather than let it go to court.
How to take legal action if someone owes you money (small claims court), how much it costs, what happens next. Includes information from withdrawn guidance EX303, EX304, EX306, EX321, EX325 and EX350.
www.gov.uk
(Note that consumer law claims are against the
retailer, however, not the manufacturer)