To generate and share a WiFi QR code on an iPhone running iOS 18, open the Passwords app, select the Wi-Fi option, choose your network, and tap Show Network QR Code ...
Rather than have a guest select your Wi-Fi network and then enter a fiddly password, just make them a QR code their iPhone can read. Here's how to do it. You wouldn't ...