I'm not sure how you want your border to look, but whenever I need a quick border around a view, I usually use the following:
var view = UIView(frame: frame) view.layer.borderWidth = 1 view.layer.borderColor = UIColor.blackColor().CGColor
Update Swift 3
view.layer.borderColor = UIColor.black.cgColor
Perhaps you can apply this to your collection view cell or create your own class that sets these values ββafter initialization.
Either this, or you can set the cell size so that spaces between cells serve as borders and set minimumLineSpacing and minimumInteritemSpacing in your custom stream layout implementation.
skim source share