---
title: "didSelectTabs(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensioncontroller/didselecttabs(_:)"
---

# didSelectTabs(_:)

Should be called by the app when tabs are selected to fire appropriate events with all loaded web extensions.

## Declaration

```swift
func didSelectTabs(_ selectedTabs: [any WKWebExtensionTab])
```

## Parameters

- `selectedTabs`: The set of tabs that were selected.

## Discussion

Discussion This method informs all loaded extensions that tabs have been selected, ensuring consistent understanding across extensions. If the intention is to inform only a specific extension, you should use the respective method on that extension’s context instead.
