2

The title pretty much says it all. I have a scroll view and I want to change the little line on the right side that shows how far down you are to be yellow. Is there a way to do it in SwiftUI? The only method I can find is showIndicators, nothing about changing the color.

Coop Daddy
  • 23
  • 1
  • 5

1 Answers1

0

You would need yo make your own SwiftUI ScrollView implementation or you would need to use an UIScrollView control with a UIViewRepresentable.

I have seen this tutorial how to implement a custom ScrollView with SwiftUI.

If you go with the UIViewRepresentable you can use the standard possibilities you would use for UIScrollView customisations How to change UIScrollView Indicator color?.

Marc T.
  • 5,090
  • 1
  • 23
  • 40