In UIKit we have a UIScrollView method which allows us to make the scroll indicators flash briefly to inform users there's a scrolling content on screen (which is not always obvious). Apple says:
func flashScrollIndicators()
You should call this method whenever you bring the scroll view to front.
My question is: how can I get the same on SwiftUI? Take a look at this very silly example, just to show the issue:
If you take a look at this screen you can't know if you can scroll something or not:

but you actually could:

How can I make my users aware of scrolling content on SwiftUI?
As of iOS 17.0, there is now:
func scrollIndicatorsFlash(onAppear: Bool) -> some View
to flash the scroll indicators when the view appears. There's also a version with a trigger parameter that flashes the indicators when a value changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With