Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #scrollview #scroll #bottom
ADD COMMENT
Topic
Name
8+6 =