<!--
{
  "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(onAppear:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF"
  },
  "title" : "scrollIndicatorsFlash(onAppear:)"
}
-->

# scrollIndicatorsFlash(onAppear:)

Flashes the scroll indicators of a scrollable view when it appears.

```
nonisolated func scrollIndicatorsFlash(onAppear: Bool) -> some View
```

## Parameters

`onAppear`

A Boolean value that indicates whether the scroll
indicators flash when the scroll view appears.

## Return Value

A view that flashes any visible scroll indicators when it
first appears.

## Discussion

Use this modifier to control whether the scroll indicators of a scroll
view briefly flash when the view first appears. For example, you can
make the indicators flash by setting the `onAppear` parameter to `true`:

```
ScrollView {
    // ...
}
.scrollIndicatorsFlash(onAppear: true)
```

Only scroll indicators that you configure to be visible flash.
To flash scroll indicators when a value changes, use
[`scrollIndicatorsFlash(trigger:)`](/documentation/SwiftUI/View/scrollIndicatorsFlash(trigger:)) 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)