I also had this problem in the simulator at some point in the beta process, but when on a real device it works.
In my app on the App Store, I have this implemented as a nav bar button and it works as expected. You can see the code on my GitHub. I linked to the direct file.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.