Contents

createVisibilityPropagationInteraction()

Returns an interaction that associates a view with the rendering process.

Declaration

func createVisibilityPropagationInteraction() -> any UIInteraction

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 isn’t visible, the system schedules the process as a background helper.

If your rendering extension prepares content for multiple views, create a separate visibility propagation for each view.

See Also

Visibility propagation