CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ | 
| LangLanguage | SwiftSwift | 
| License | MIT | 
| ReleasedLast Release | Feb 2016 | 
| SPMSupports SPM | ✗ | 
Maintained by Ivan Bruel.
A UICollectionViewFlowLayout implementation to allow separators between cells.
Be sure to allow spacing between cells to be able to show the separator!
import Foundation
import UIKit
import SeparatorCollectionViewFlowLayout
// MARK: Initializer and Properties
class SomeViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate {
  let collectionView: UICollectionView
  let separatorCollectionViewFlowLayout: SeparatorCollectionViewFlowLayout
  init() {
    separatorCollectionViewFlowLayout = SeparatorCollectionViewFlowLayout(separatorWidth: 1.0, separatorColor: UIColor.grayColor())
    collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: separatorCollectionViewFlowLayout)
    super.init(nibName: nil, bundle: nil)
    collectionView.delegate = self
    collectionView.dataSource = self
    view.addSubview(collectionView)
  }
  ...
}Just change the default class of your UICollectionViewFlowLayout to SeparatorCollectionViewFlowLayout and set the Separator Width and Separator Color properties.
Issues and pull requests are welcome!
Ivan Bruel @ivanbruel
SeparatorCollectionViewFlowLayout is released under an MIT license. See LICENSE for more information.