---
title: stopScrollingAndZooming()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiscrollview/stopscrollingandzooming()
---

# stopScrollingAndZooming()

Stops active scroll and zoom animations.

## Declaration

```swift
func stopScrollingAndZooming()
```

## Discussion

Discussion The scroll view’s content offset remains at the value it has when you call this method, unless: The scroll view is bouncing, in which case the content offset returns to the edge of the document. The scroll view is paging its content, in which case the content offset updates to a page boundary.

## See Also

### Managing the scrolling state

- [isTracking](uikit/uiscrollview/istracking.md)
- [isDragging](uikit/uiscrollview/isdragging.md)
- [isDecelerating](uikit/uiscrollview/isdecelerating.md)
- [isScrollAnimating](uikit/uiscrollview/isscrollanimating.md)
- [decelerationRate](uikit/uiscrollview/decelerationrate-swift.property.md)
- [UIScrollView.DecelerationRate](uikit/uiscrollview/decelerationrate-swift.struct.md)
