<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/scrollIndicatorsFlash(trigger:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF"
  },
  "title" : "scrollIndicatorsFlash(trigger:)"
}
-->

# scrollIndicatorsFlash(trigger:)

Flashes the scroll indicators of scrollable views when a value changes.

```
nonisolated func scrollIndicatorsFlash(trigger value: some Equatable) -> some View
```

## Parameters

`value`

The value that causes scroll indicators to flash.
The value must conform to the
<doc://com.apple.documentation/documentation/Swift/Equatable>
protocol.

## Return Value

A view that flashes any visible scroll indicators when a
value changes.

## Discussion

When the value that you provide to this modifier changes, the scroll
indicators of any scrollable views within the modified view hierarchy
briefly flash. The following example configures the scroll indicators
to flash any time `flashCount` changes:

```
@State private var isPresented = false
@State private var flashCount = 0

ScrollView {
    // ...
}
.scrollIndicatorsFlash(trigger: flashCount)
.sheet(isPresented: $isPresented) {
    // ...
}
.onChange(of: isPresented) { newValue in
    if newValue {
        flashCount += 1
    }
}
```

Only scroll indicators that you configure to be visible flash.
To flash scroll indicators when a scroll view initially appears,
use [`scrollIndicatorsFlash(onAppear:)`](/documentation/SwiftUI/View/scrollIndicatorsFlash(onAppear:)) instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)