I cannot get my UICollection to set the sectionInset.left marker sectionInset.left when using boxes with estimatedItemSize sizes. UICollectionview cells must have some fixed cell height, but dynamic width according to the length of the text.
Here's what it looks like when self-learning mode is turned on:

And when self-limiting is turned off:

Oddly enough, it seems that sectionInset.right working, i.e. the field is added on the right side of the UICollectionView.
Here is my custom UICollectionViewFlowLayout, I switch the self-size mode using a comment.
class myFlow: UICollectionViewFlowLayout { required init(coder: NSCoder) { super.init(coder: coder) self.minimumLineSpacing = 1
And my custom UICollectionView:
class myCV: UICollectionView { required init(coder decoder: NSCoder) { super.init(coder: decoder) self.layer.cornerRadius = 5.0 self.layer.borderWidth = 1.0 self.layer.borderColor = UIColor.lightGrayColor().CGColor } }
I laid out a shortcut inside a UICollectionView cell using AutoLayout:

source share