As long as the person’s phone is relatively up to date, they should be able to scan the QR code to automatically join the network. And yes, it even works for people trying to get on your Wi-Fi with an iPhone.
If scanning the code doesn’t work for whatever reason, you can have the person manually enter the password.
Since iOS 11, Apple has included an easy way to share your password with other iPhone, iPad, and Mac users. To use it, make sure you both have Wi-Fi and Bluetooth turned on — by default, the toggles are in Control Center, which you can access by swiping down from the top-right corner on a phone with Face ID or from the bottom on a phone with a home button. You’ll also have to be connected to the network they’re trying to connect to.
If you’re not seeing the prompt, it may be due to Apple’s requirement that the person requesting the password has to have your Apple ID email saved in their Contacts app and vice versa. So, if you’re having problems, you can both go to Settings, tap your name at the top, and check to make sure your listed email addresses have been added to each other’s contact cards.
At that point, however, it’ll probably just be easier to show them the password and have them type it in. If you don’t know it offhand and you’re running iOS 16 or later, you can access the password by going to Settings > Wi-Fi, tapping on the blue i button next to your connected network, and then tapping on the password field. After you authenticate yourself, you’ll be able to see your password.
You could theoretically then copy and paste it into a message and send it to the person you’re trying to share your Wi-Fi with. Personally, I’d rather just show them the screen and have them type it in so my password isn’t going through SMS or some other messaging service, but feel free to do whatever you’re comfortable with.
Unfortunately, though not surprisingly, iOS currently doesn’t have a built-in way to easily share your password with someone who uses Android. If you want to share your password with them, you’ll have to go through the manual steps described above.