---
title: "setContentScrollView(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontroller/setcontentscrollview(_:)"
---

# setContentScrollView(_:)

Sets the scroll view that bars observe for all edges of the view.

## Declaration

```swift
@MainActor @preconcurrency func setContentScrollView(_ scrollView: UIScrollView?)
```

## Parameters

- `scrollView`: The scroll view to observe.

## Discussion

Discussion Calling this convenience method is identical to calling setContentScrollView(_:for:) and passing all for the edge parameter.

## See Also

### Working with scrolling content

- [setContentScrollView(_:for:)](uikit/uiviewcontroller/setcontentscrollview(_:for:).md)
- [contentScrollView(for:)](uikit/uiviewcontroller/contentscrollview(for:).md)
