title: Swift 'does not have a member named'
body: <p>Is there a solution for this problem ?</p>
  
  <pre><code>class ViewController : UIViewController {
      let collectionFlowLayout = UICollectionViewFlowLayout()
      let collectionView = UICollectionView(frame: CGRectZero, collectionViewLayout: collectionFlowLayout)
  }
  </code></pre>
  
  <p>xcode gives me the following error</p>
  
  <pre><code>ViewController.swift: 'ViewController.Type' does not have a member named 'collectionFlowLayout'
  </code></pre>
  
  <p>i could make it an optional and initialise it in the init method, but i'm looking for a way to make the collectionview a let and not a var</p>