No matter how much water has penetrated, FIRST take yourself to a safe location where you can open the case without endangering yourself or others. When diving, please also let your group/partner know that you would like to dive. Make sure you adhere to all safety stops and decompression times!
Open the case with the back facing parallel to the ground so that your iphone cannot fall out. Remove your iphone from the case and dry. If you’ve been in salt water, rinse your iPhone X with clean fresh water and then dry it off. Rinse and dry your case as well.
Check what the cause was, we are at your disposal for support requests.