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. Your friend can scan the code ...
Another handy and free generator is QR Code Generator. It allows you to create static and dynamic QR codes (editable even after printing) that you can use for different purposes and in various formats ...