It looks like it needs a barButtonItem set on the popoverPresentationController of the UIActivityViewController to make it work. I tested this and got it to work, by:
Adding a weak, private property on the STKWebKitViewController to hold on to the shareButtonItem after it is created, and then assigned it in the fillToolbar method, like so:
You might want to implement it differently, of course, (especially the weak property part), but I just had to fix it and submitted the bug to help others. Thanks!
Immediate, reproducable crash on iPad when the share button is pressed, with this trace:
It looks like it needs a barButtonItem set on the
popoverPresentationController
of theUIActivityViewController
to make it work. I tested this and got it to work, by:Adding a weak, private property on the
STKWebKitViewController
to hold on to the shareButtonItem after it is created, and then assigned it in thefillToolbar
method, like so:You might want to implement it differently, of course, (especially the weak property part), but I just had to fix it and submitted the bug to help others. Thanks!