Hello!
I developed a vpn application with PacketTunnel target.
And I found that an app can pop up a system alert when connecting through VPN settings.
I want to know how this approach is achieved.
Post
Replies
Boosts
Views
Activity
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: