---
title: "scrubber(_:didChangeVisibleRange:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscrubberdelegate/scrubber(_:didchangevisiblerange:)"
---

# scrubber(_:didChangeVisibleRange:)

Tells the delegate that the range of items currently visible in the scrubber has changed.

## Declaration

```swift
@MainActor optional func scrubber(_ scrubber: NSScrubber, didChangeVisibleRange visibleRange: NSRange)
```

## Parameters

- `scrubber`: The scrubber object that is notifying you of the change in the range of items that are currently visible.
- `visibleRange`: The range of items that are now visible in the scrubber.
