Do this first
Unplug it — don't charge it yet
- If your iPhone has been exposed to liquid, unplug all cables and do not charge your device until it’s completely dry. Using accessories or charging when wet might damage your iPhone. Allow at least 5 hours before charging with a Lightning or USB-C cable or connecting an accessory.
Apple: About splash, water, and dust resistance of iPhone 7 and later ↗