I have a piece of code that works very well on iPhone, but not on the iPad. It is like the window is there but not visible...
func userDidTapShare()
{
print("Share")
let mediaURL = URL(fileURLWithPath: Constants.Path.mainFolder.stringByAppendingPathComponent(path:mediaPath))
let activityItems: [Any] = [mediaURL, "Check this out!"]
let activityVC = UIActivityViewController(activityItems: activityItems, applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
activityVC.popoverPresentationController?.sourceRect = view.frame
self.present(activityVC, animated: true, completion: nil)
}
The window doesn't present on the iPad.
Any idea?