Especially for Apple products I hear this a lot.
This is a myth.
You have at least three years in my opinion, apple does forecasts assuming a product lifespan of 3 years https://www.apple.com/environment/pdf/products/ipad/iPad_PER...
The Act does not state "two years" anywhere. It says goods must be lasting, that they must last a reasonable time.
Where does this myth come from?