Having same Issue in iOS 15.4.1: UIActivityViewController when save image is tapped it will save image as well as close the modal with parent view controller.
Solution: Use custom ActivityViewController:
class CustomActivityViewController: UIActivityViewController {
override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
// super.dismiss(animated: true, completion: completion)
// Disabling this dismiss will not close your parent view controller
}
}
Post
Replies
Boosts
Views
Activity
Same issue I am facing. + 1