<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariViewControllerDelegate/safariViewController(_:activityItemsFor:title:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(pl)SFSafariViewControllerDelegate(im)safariViewController:activityItemsForURL:title:"
  },
  "title" : "safariViewController(_:activityItemsFor:title:)"
}
-->

# safariViewController(_:activityItemsFor:title:)

Tells the delegate that the user tapped an Action button.

```
optional func safariViewController(_ controller: SFSafariViewController, activityItemsFor URL: URL, title: String?) -> [UIActivity]
```

## Parameters

`controller`

The view controller.

`URL`

The URL of the web page that was active when the Action button was tapped.

`title`

The title of the web page.

## Return Value

An array of application-specific services you have chosen to include in the <doc://com.apple.documentation/documentation/UIKit/UIActivityViewController> object.

## Discussion

The view controller calls this method when the view is about to show an activity view controller. Your delegate can provide unique, application-specific services (such as a social media service) to be included with the system-provided sharing services. See <doc://com.apple.documentation/documentation/UIKit/UIActivity>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)