PositionScrollView
PositionScrollView copied to clipboard
My code: ``` var pageSize = CGSize(width: 200, height: 300) @ObservedObject var psViewModel = PositionScrollViewModel( pageSize: CGSize(width: 200, height: 300), horizontalScroll: Scroll( scrollSetting: ScrollSetting(pageCount: 3, afterMoveType: .fitToNearestUnit), pageLength: 200 )...
Update last position `self.lastPosition = position` after scrolling programatically to prevent discordances between scrolling and selecting by clicking, for instance. ``` public func moveTo(position: CGFloat) { self.lastPosition = position self.position...