---
title: "isPinned(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/ispinned(for:)"
---

# isPinned(for:)

Called when the pinned state of the tab is needed.

## Declaration

```swift
optional func isPinned(for context: WKWebExtensionContext) -> Bool
```

## Parameters

- `context`: The context in which the web extension is running.

## Discussion

Discussion Defaults to NO if not implemented.

## See Also

### Related Documentation

- [setPinned(_:for:completionHandler:)](webkit/wkwebextensiontab/setpinned(_:for:completionhandler:).md)
