If the content of the ScrollView is bigger than the screen, while scrolling, the scrollbar on the side appears. I couldn't find anything to help me hide it.
5 Answers
if you need to hide both scrollers:
ScrollView(showsIndicators: false) {
//your code
}
__
If you need to hide only one scroller, but to have ability to scroll in both directions:
need to use Introspect (this is link to better introspect, as original introspect now is unsupportable):
ScrollView() {
// Some Content
}
.introspectScrollView {
$0.hasHorizontalScroller = false
$0.hasVerticalScroller = true
}
as result:
- horisontal scroller invisible
- vertical scroller visible;