It doesn’t affect anymore. Following the landmark ACCC v Apple court case settled in June 2018, the rules have changed. If you replace the screen on your iPhone or iPad, your Apple warranty will not be affected. However, other repairs, including battery replacements, housing replacements, and charge port replacements may impact your warranty.