Skip to content

Instantly share code, notes, and snippets.

@killev
killev / CollectionView.swift
Last active February 4, 2018 08:29
UICollectionView changes problem
import UIKit
class ViewController: UIViewController, UICollectionViewDataSource {
@IBOutlet weak var collectionView: UICollectionView!
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
return collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath)
}
@killev
killev / SignalStream+With.swift
Created December 7, 2018 13:49
Implementation of with function
//
// SignalStream+With1.swift
// CCRestIntegration
//
// Created by Peter Ovchinnikov on 9/7/18.
//
// swiftlint:disable large_tuple function_parameter_count
//line_length