Post

Replies

Boosts

Views

Activity

UIActivityViewController is not performing any action on iOS 17.
let shareMesage = "\(StringUtils.getTranslationWithKey("checknow")) \(package_name)\n\n\(urlString)" let activityViewController = UIActivityViewController(activityItems: [shareMesage], applicationActivities: nil) activityViewController.popoverPresentationController?.sourceView = self.custom_navigationBar activityViewController.excludedActivityTypes = [ UIActivity.ActivityType.airDrop, UIActivity.ActivityType.postToFacebook ] self.present(activityViewController, animated: true) Presented the activity controller, clicked on what's app & message but activity controller is not dismissed and showing the below error for iOS 17. Attempt to present <MFMessageComposeViewController: 0x11601ca00> on <UINavigationController: 0x11300aa00> (from <SHSheetSceneViewController: 0x10fd32d10>) whose view is not in the window hierarchy. Trying to perform <UIMessageActivity: 0x282c24420> activityType:com.apple.UIKit.activity.Message activityTitle:Messages but there is already an activity performing:<SHSheetActivityPerformer: 0x28300c9a0>
0
1
640
Nov ’23