Apple’s new iOS 10 software flashes up a warning message when it detects liquid in an iPhone or iPad’s Lightning charging port, it has emerged.
The feature, spotted by keen Apple-watchers in a test version of the operating system, was not announced by Apple when it unveiled iOS 10 at the Worldwide Developers Conference (WWDC) in June.
Water damage can be easily missed, especially if it comes from a small splash, so this is likely to prove a popular addition among iPhone owners.
The warning message tells users to disconnect any accessories and leave their iPhone to dry out in the meantime.
Initial research suggests that the water damage feature only works on the iPhone 6s, 6s Plus and SE, with older devices missing out.
Recent rumours suggested that the forthcoming iPhone 7 and iPhone 7 Plus will be the first Apple smartphones to be fully waterproof.
This is something Apple rivals such as Sony and Samsung have offered for some time, but could give the otherwise unexciting new iPhone a sales boost when it launches in September.