instalobi.blogg.se

Ios swift share button
Ios swift share button




ios swift share button
  1. #Ios swift share button how to
  2. #Ios swift share button install
  3. #Ios swift share button update

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

#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.

ios swift share button

Go to Settings > Account > Privacy > Screen lock.

  • Enable Screen lock (Face ID or Touch ID) for WhatsApp or other apps.
  • Assign proper contact information to the contacts you frequently chat with, especially the one you recently contacted through messaging apps.
  • Delete the recent chat with the person, not in your contacts.
  • Some of the fixes that seem to have worked for iPhone and iPad users are: That might happen because of the lack of required contact information to display in Share Sheet or a bug in the app itself. Basically, if you had a recent conversation in any of the chat apps especially WhatsApp and Viber, with a person who is not on your contact list, the Share Sheet could crash. Since Share Sheet automatically populates contacts based on recent conversations, most of the time, it crashes due to problems in contacts. You should either uninstall it or see if there are other available updates for the app.

    #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)






    Ios swift share button