title: CollectionVIew dynamic calculation width, item display is incomplete
body: <p>The <code>UICollectionView</code> uses the calculated item attribute (estimatedItemSize) to calculate the width of the item and the layout of the Masonry used by <code>UICollectionViewCell.m</code>. As a result, the last Item cannot be pulled and the display is incomplete. Modifying contentInset has no effect.</p>
  <p>Directly fixed item size can be completely displayed, guessing that the dynamic calculation does not calculate the width.</p>
  <p><a href="https://i.stack.imgur.com/hJbil.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hJbil.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/cVXHq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cVXHq.jpg" alt="enter image description here" /></a></p>
  <h1>Code:</h1>
  <p>MainViewController:</p>
  <p><a href="https://i.stack.imgur.com/TdSan.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TdSan.jpg" alt="enter image description here" /></a></p>
  <p>HeaderCollectionView:</p>
  <p><a href="https://i.stack.imgur.com/8TDuw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8TDuw.jpg" alt="enter image description here" /></a></p>
  <p>HeaderViewCell:</p>
  <p><a href="https://i.stack.imgur.com/oGOzg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oGOzg.jpg" alt="enter image description here" /></a></p>