In iOS 26 and later, UIScrollView and its subclasses (like UITableView and UICollectionView) use the new UIScrollEdgeEffect instead of the older rubber-banding or glow behavior when reaching the scroll limits.
I want to completely disable this edge effect, not just hide the indicator or disable bouncing.
HangarRash
16.3k5 gold badges27 silver badges62 bronze badges
asked 2 days ago
1 Answer 1
UIScrollEdgeEffect
has a isHidden
property. Just set that to true on the desired edges of the scroll view.
scrollView.topEdgeEffect.isHidden = true
scrollView.bottomEdgeEffect.isHidden = true
scrollView.leftEdgeEffect.isHidden = true
scrollView.rightEdgeEffect.isHidden = true
answered 2 days ago
Sign up to request clarification or add additional context in comments.
Comments
lang-swift