0

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
0

1 Answer 1

0

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.