Need UICollectionViewCell padding using UICollectionViewLayout
<p>I am working with UICollectionView which has custom UICollectionViewLayout.I need spacing around UICollectionViewCell like i can get if i use UICollectionViewFlowLayout with this minimumInteritemSpacingForSectionAtIndex and minimumLineSpacingForSectionAtIndex.</p>

<p>This properties are not in UICollectionViewLayout. So how i can manage spacing between UICollectionViewCell in swift 2.1 or any idea?</p>

<p>I have tried this </p>

<pre><code>        let bcolor : UIColor = UIColor.whiteColor()
        dataCell.layer.borderColor = bcolor.CGColor
        dataCell.layer.borderWidth = 0.9
        dataCell.layer.cornerRadius = 3
</code></pre>

<p>any better idea?</p>