---
title: delegate
framework: safariservices
role: symbol
role_heading: Instance Property
path: safariservices/sfsafariviewcontroller/delegate
---

# delegate

An object that provides behavior for the Safari view controller’s Done and Action buttons.

## Declaration

```swift
weak var delegate: (any SFSafariViewControllerDelegate)? { get set }
```

## Discussion

Discussion Provide a SFSafariViewControllerDelegate object to respond to the Done and Action buttons.

## See Also

### Responding to View Controller Interaction

- [SFSafariViewControllerDelegate](safariservices/sfsafariviewcontrollerdelegate.md)
