SwiftUI: How to hide List scroll bar?

Viewed 633

I have a simple List. I would like to hide the vertical scrollbar on the right. Is there a way to hide it?

1 Answers

you can get rid of showing indicator for all Lists, but with an API of the UITableView. because SwiftUI List is using UITableView for iOS behind the scene:

init() {
   UITableView.appearance().showsVerticalScrollIndicator = false
}
Related