---
title: UIScrollEdgeElementContainerInteraction
framework: uikit
role: symbol
role_heading: Class
path: uikit/uiscrolledgeelementcontainerinteraction
---

# UIScrollEdgeElementContainerInteraction

Add this interaction to a container view of views that overlay the edge of a scroll view. Any descendants of this view that should affect the shape of the edge effect, such as labels, images, glass views, and controls, will automatically do so.

## Declaration

```swift
@MainActor class UIScrollEdgeElementContainerInteraction
```

## Overview

Overview In the following example, an interaction is added to a container view of buttons that overlay the bottom edge of a scroll view. let interaction = UIScrollEdgeElementContainerInteraction() interaction.scrollView = scrollView interaction.edge = .bottom buttonContainer.addInteraction(interaction)

## Topics

### Instance Properties

- [edge](uikit/uiscrolledgeelementcontainerinteraction/edge.md)
- [scrollView](uikit/uiscrolledgeelementcontainerinteraction/scrollview.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [UIInteraction](uikit/uiinteraction.md)

## See Also

### Interacting with adjacent views

- [UIBackgroundExtensionView](uikit/uibackgroundextensionview.md)
