Skip to content

Instantly share code, notes, and snippets.

View cloud2006's full-sized avatar
🖥️
in love with 

Pavlo Antoniuk cloud2006

🖥️
in love with 
View GitHub Profile
@cloud2006
cloud2006 / PagingCollectionViewController.swift
Created February 19, 2019 14:55 — forked from michaelevensen/PagingCollectionViewController.swift
An example of perfectly paging horizontal UICollectionViewController with overflowing cells. Works great with Storyboard — no need to set any specific attributes, just add this Class to the Controller and set your desired size for the cells like you would normally.
import UIKit
private let reuseIdentifier = "Cell"
class CollectionViewController: UICollectionViewController {
/* Custom scrollView for paging */
let pagingScrollView = UIScrollView()
/* Return item size */