1. Make sure both iPhones have Wi-Fi and Bluetooth on, and each person is saved in the other's contacts.
2. Your iPhone must be unlocked and connected to the Wi-Fi.
3. On the other iPhone, choose your Wi-Fi network in Settings, then Wi-Fi.
4. A pop-up appears on your iPhone: tap "Share Password". The other iPhone connects automatically.
5. iOS 18: the Passwords app shows saved Wi-Fi passwords, and you can show a QR code for others to scan.