Answers for "scrollviewreader swiftui"

2

swift scrollview hide scrollbar

scrollView.showsHorizontalScrollIndicator = false 
scrollView.showsVerticalScrollIndicator = false
Posted by: Guest on June-11-2020
1

swift collectionview scrolltoitem

self.collectionView.scrollToItem(at:IndexPath(item: indexNumber, section: sectionNumber), at: .right, animated: false)
Posted by: Guest on March-25-2020
0

swift scrollview scroll to bottom

let bottomOffset = CGPoint(x: 0, y: scrollView.contentSize.height - scrollView.bounds.size.height)
//OR
//let bottomOffset = CGPoint(x: 0, y: scrollView.frame.maxY)
scrollView.setContentOffset(bottomOffset, animated: true)
Posted by: Guest on November-17-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language