title: How to make a simple collection view with Swift
body: <p>I'm trying to learn how to use <code>UICollectionView</code>. The <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionView_class/" rel="noreferrer">documentation</a> is a little hard to understand and the tutorials that I found were either in Objective C or long complicated projects.</p>
  
  <p>When I was learning how to use <code>UITableView</code>, <em>We ❤ Swift's</em> <a href="https://www.weheartswift.com/how-to-make-a-simple-table-view-with-ios-8-and-swift/" rel="noreferrer">How to make a simple tableview with iOS 8 and Swift</a> had a very basic setup and explanation to get me going. Is there anything like this for <code>UICollectionView</code>?</p>
  
  <p>The answer below is my attempt to learn to do this.</p>