IPx7 = Water: up to 3.3 feet for 30 minutes. The second-highest water resistance rating.

It should survive drops in the toilet, bathtub, water splashes, rain, etc. Pressured water, like the shower, probably won’t go over well. Nor will keeping it under water for a long time. Saltwater or chlorine in pools can damage the phone so be careful around pools and ocean/sea water. The iPhone 7 is not waterproof.

I repeat, the iPhone 7 is not waterproof, it is water resistant. So don’t go throwing it in the pool.

Lastly, don’t charge a wet iPhone and remember that any liquid damage is not covered by warranty.

iPhone 7 and iPhone 7 Plus are splash, water, and dust resistant and were tested under controlled laboratory conditions with a rating of IP67 under IEC standard 60529. 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.