---
title: "activate(completionHandler:)"
framework: safariservices
role: symbol
role_heading: Instance Method
path: "safariservices/sfsafaritab/activate(completionhandler:)"
---

# activate(completionHandler:)

Activates the tab.

## Declaration

```swift
func activate(completionHandler: (@Sendable () -> Void)? = nil)
```

```swift
func activate() async
```

## Parameters

- `completionHandler`: A block to call when the tab is activated.

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func activate() async For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.
