---
title: createVisibilityPropagationInteraction()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/webcontentprocess/createvisibilitypropagationinteraction()
---

# createVisibilityPropagationInteraction()

Returns an interaction that associates a view with the web content process.

## Declaration

```swift
func createVisibilityPropagationInteraction() -> any UIInteraction
```

## Discussion

Discussion When you add a visibility propagation interaction to a view, the system considers the extension process visible whenever the view is visible, and schedules the process as if it has visible UI. When the view is not visible, the system schedules the process as a background helper. If your web content extension prepares content for multiple views, create a separate visibility propagation for each view.

## See Also

### Visibility propagation

- [Propagating view visibility information to extension processes](browserenginekit/propagating-view-visibility-information-to-browser-extensions.md)
- [createVisibilityPropagationInteraction()](browserenginekit/renderingprocess/createvisibilitypropagationinteraction().md)
