Add a facebook news feed style animation for your placeholder views
Switch branches/tags
Nothing to show
Clone or download
Latest commit c36ab78 Jan 2, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Convert to swift 3 Dec 31, 2016
.gitignore Handle rotation and layout change Jan 8, 2016
LICENSE Initial commit Jan 8, 2016
Loader.swift Convert to swift 3 Dec 31, 2016 Update readme Jan 8, 2016


This library allows you to easily add an FB style animated loading placeholder to your tableviews or collection views.



Loader.addLoaderToTableView(self.tableView) 		// to add 
Loader.removeLoaderFromTableView(self.tableView)	// to remove

How it works

It adds an animated gradient to the content views of the visible cells. After that it inserts a cutout view wherever all the other views are with "holes" where all the text and image views are. The alphas of all the text and image views are set to zero.

This is undone when you remove the loader.


Props to the excellent deconstruction of the news feed loader here: