Under iOS 17, I need to set view.backgroundColor
when using UIActivityViewController,
otherwise the navigationBar
will be transparent. (iOS 17 does not have this problem)
I have checked many tutorial examples but this situation is not mentioned. Is there any implementation missing from my code?
Sample Code:
let sharedURL = URL(string: "...")!
let activityVC = UIActivityViewController(activityItems: [sharedURL], applicationActivities: nil)
present(activityVC, animated: true)
Sample Image: