Imported from the Apple Support Forums via the Wayback Machine 🔗
It is water resistant, not waterproof. And yes, as stated in the terms of the warranty, water damage voids the warranty. No phone manufacturer offering IP67 & 68 rated devices covers water damage, other than a couple of small companies offering fully “ruggadized” phones.
“iPhone XS and iPhone XS Max are splash, water, and dust resistant and were tested under controlled laboratory conditions with a rating of IP68 under IEC standard 60529 (maximum depth of 2 meters up to 30 minutes). Splash, water, and dust resistance are not permanent conditions and resistance might decrease as a result of normal wear. Do not attempt to charge a wet iPhone; refer to the user guide for cleaning and drying instructions. Liquid damage not covered under warranty.“