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
@MainActor class UIScrollEdgeElementContainerInteractionOverview
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)