 
 class ViewController: UIViewController {
     
-    let numberOfItems = 150
+    let numberOfItems = 100
     var randomCellStyle: CellStyle { return arc4random_uniform(10) % 2 == 0 ? .blue : .gray }
     var randomFloat: CGFloat { return max(45, CGFloat(arc4random_uniform(100))) }
     

        super.viewDidLoad()
        
        view.backgroundColor = .white
        
        collectionView.contentInset = UIEdgeInsets(top: insets.top + additionalInsets.top, left: insets.left + additionalInsets.left, bottom: insets.bottom + additionalInsets.bottom, right: insets.right + additionalInsets.right)
        collectionView.scrollIndicatorInsets = UIEdgeInsets(top: insets.top, left: 0, bottom: insets.bottom, right: 0)
        view.addSubview(collectionView)
        
        NSLayoutConstraint.activate([

        switch example {
        case .chatMessage: return UIEdgeInsets(top: 5, left: 0, bottom: 5, right: 0)
        case .photosCollection: return UIEdgeInsets(top: 15, left: 15, bottom: 15, right: 15)
        case .barGraph: return UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 10)
        }
    }
    
