It can take up to 24 hours to completely dry. If the phone has dried up but is still not charging, disconnect the adapter cable and disconnect it from the wall (if possible) and reconnect them. If your iPhone has been exposed to liquids, disconnect all cables and don't charge the device until it's completely dry. Using accessories or charging it when it's wet can damage your iPhone.
Wait at least 5 hours before charging or connecting a Lightning or USB-C accessory. Wait at least 5 hours before charging it with a Lightning or USB-C cable or connecting an accessory. Don't try to charge it while it's drying or you could damage it even more. Remember that your phone must be turned off.
Apple says you'll want to wait at least five hours before drying it to charge it. If your iPhone comes into contact with any of these substances, follow the instructions to clean it. It's also important to note that some iPhones are actually water resistant, so if you have an iPhone 7 or later, you'll have better luck.