How to hide scroll bar of UICollectionView

Objective C:

 [collectionView setShowsHorizontalScrollIndicator:NO];
 [collectionView setShowsVerticalScrollIndicator:NO];

Swift 3.0

colView.showsHorizontalScrollIndicator = false
colView.showsVerticalScrollIndicator = false

From storyboard:

enter image description here


Option #1 (by code):

myCollectionView.showsVerticalScrollIndicator = false
myCollectionView.showsHorizontalScrollIndicator = false

Option #2 (from storyboard):

Go to Attributes inspector > Uncheck "Show Horizontal Indicator" and "Show Vertical Indicator"


in Swift:

collectionView.showsHorizontalScrollIndicator = false

in Interface Builder: enter image description here