-1

I am creating a swiping controller from collection views in my app, but one problem I am having is I am not able to get rid of the thin rectangle that appears whenever I swipe from one collection view cell to the next. The rectangle I am talking about also appears whenever you are scrolling in a scrollview. I am not sure what the proper terminology for this is however I would really appreciate it if someone could help me understand how to get rid of this.

Eshan
  • 115
  • 7

2 Answers2

0

Have you tried:

myCollectionView.showsHorizontalScrollIndicator = false    
myCollectionView.showsVerticalScrollIndicator = false

Those properties are inherited of UIScrollView

Zaphod
  • 6,758
  • 3
  • 40
  • 60
0

if you are using StoryBoard uncheck Show Horizantal Indicator and Show Vertical Indicator

enter image description here

And in code you can do

scrollView.showsHorizontalScrollIndicator = false    
scrollView.showsVerticalScrollIndicator = false
Jawad Ali
  • 13,556
  • 3
  • 32
  • 49