Is there a solution to this problem?
class ViewController : UIViewController { let collectionFlowLayout = UICollectionViewFlowLayout() let collectionView = UICollectionView(frame: CGRectZero, collectionViewLayout: collectionFlowLayout) }
xcode gives me the following error
ViewController.swift: 'ViewController.Type' does not have a member named 'collectionFlowLayout'
I could make it optional and initialize it in the init method, but I'm looking for a way to make a collection of view let, not var
source share