Sharesheet and iPads

Hi, I have a share sheet and in the simulator (I don't have an actual iPad) the share sheet will not show.

Thanks in advanced!

Have you tried this:

        activityViewController.popoverPresentationController?.sourceView = sender

(Assuming sender is a UIButton.)

Seems iPadOS cannot find where to show the share sheet when you specify the whole view.


By the way, you should better use Code Block rather than Text attachment when you show a code not too long.

Sharesheet and iPads
 
 
Q