0

I am trying to share something from tableViewCell but whenever I press on share, it displays the activityViewController but wont give me any options to share it with. I tried running it on my iPhone as well and same issue appears.

override func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {

    let shareActions = UITableViewRowAction(style: .normal, title: "Share") { (_ rowAction: UITableViewRowAction, _ indexPath: IndexPath) in

        let sharingItem = self.eventsArray[indexPath.row]

        let activityViewController = UIActivityViewController(activityItems: [sharingItem], applicationActivities: nil)

        self.present(activityViewController, animated: true, completion: nil)

    }

Picture - This is what happens when I try to share it

Again, i tried running it on my phone and same thing happens. when i click on more, it doesn't show any applications options there either. Any idea what's wrong here? Thank you in advance!

Kunj Patel
  • 13
  • 4

0 Answers0