(Don\'t mark this question as duplicated. I read a lot of questions but I don\'t find the answer to my issue.)
My issue is the following: I have a UIScrollView
UIScrollView
Use next class, setting canScroll as needed:
canScroll
class BlockScrollView: UIScrollView { var canScroll = true override func setContentOffset(_ contentOffset: CGPoint, animated: Bool) { if canScroll { super.setContentOffset(contentOffset, animated: animated) } } }