Skip to content
Projets

À propos

Add a facebook news feed style animation for your placeholder views

Création et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Loader.Swift

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

Preview

Usage


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.

Credits

Props to the excellent deconstruction of the news feed loader here: http://cloudcannon.com/deconstructions/2014/11/15/facebook-content-placeholder-deconstruction.html

Explorer des projets similaires

Chargement…