The iPhone 15 is likely to have an IP rating of IP68, making it water resistant and able to withstand full immersion in water for up to 15 minutes, however any longer and you risk damaging the electronics.