Instagram / IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.
https://instagram.github.io/IGListKit/
MIT License
12.85k stars 1.54k forks source link

Can't make space between section and cells #166

Closed dekelm8 closed 7 years ago

dekelm8 commented 7 years ago

Hi How i can make spaces between sections? i'm using collectionview on storyboard, but inset parameters not working, there's special way to do it with IGListKit?

rnystrom commented 7 years ago

Hey @dekelm8, try changing the inset of your section controller, like:

class MySectionController: IGListSectionController, IGListSectionType {
  override init() {
    super.init()
    inset = UIEdgeInsets(top: 0, left: 0, bottom: 15, right: 0)
  }

  // etc implementation
}

That would add 15 point inset to the bottom of every MySectionController.

Are you setting the insets on UICollectionViewFlowLayout? We had a suggestion to get global section insets working once, maybe we should revisit that.

dekelm8 commented 7 years ago

Thanks that's work. Really want to say thanks for the great support guys, It's really feel like IG team are full committed for this amazing framework Thanks Again