

Turn off the toggle next to the app that you want to hide from Share Sheet and hit the Done button. Step 2: Swipe on the list of the app till you see the More option. If that is a possibility, try disabling all the apps one-by-one or if you know the problematic app, disable that as shown below. Disable the problematic messaging app from the Share Sheet, as shown in the next fix.įor this fix, you should be able to open the Share Sheet at least once.Also, find out what happens by uninstalling WhatsApp. Make sure to back up your chats to iCloud before you uninstall the app.

#Ios swift share button install
Uninstall WhatsApp, restart the phone, and then install the app again.When Screen Lock is enabled, it disables the WhatsApp Share Sheet.

Go to Settings > Account > Privacy > Screen lock.
#Ios swift share button update
Check Recently Installed Appĭid you recently install or update any app after which the problem of Share Sheet not working started? That particular app might be the cause of the issue.
#Ios swift share button how to
Tip: Find out how to disable contact suggestions for individual apps. Step 2: Turn off the toggle next to Suggestions when sharing. Step 1: Open Settings on your iPhone or iPad and go to Siri & Search. Disable Share Sheet Suggestionsįor several iPhone and iPad users, disabling contact suggestions in the Share Sheet has helped them fix the issue. At times, such an easy solution acts as a magical gift. You should start the troubleshooting process by simply rebooting your iPhone or iPad. On ViewDidLoad navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Share", style. This is how I implemented sharing with Swift 4/5 using a right button on the Navigation Controller. Swift 5: // Setting description let firstActivityItem = "Description you want." // Setting url let secondActivityItem : NSURL = NSURL(string: "")! // If you want to use an image let image : UIImage = UIImage(named: "your-image-name")! let activityViewController : UIActivityViewController = UIActivityViewController( activityItems:, applicationActivities: nil) // This lines is for the popover you need to show in iPad activityViewController.popoverPresentationController?.sourceView = (sender as! UIButton) // This line remove the arrow of the popover to show in iPad activityViewController.popoverPresentationController?.permittedArrowDirections = UIPopoverArrowDirection.down activityViewController.popoverPresentationController?.sourceRect = CGRect(x: 150, y: 150, width: 0, height: 0) // Pre-configuring activity items activityViewController.activityItemsConfiguration = as? UIActivityItemsConfigurationReading // Anything you want to exclude activityViewController.excludedActivityTypes = activityViewController.isModalInPresentation = true self.present(activityViewController, animated: true, completion: nil)
