nazywamsiepawel / ParallaxAutoLayoutDemo

Parallax UITableView header using Auto Layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parallax Auto Layout Demo

Blog post: http://runmad.com/blog/2015/08/parallax-uitableview-header-with-auto-layout/

This Xcode project shows how to add a tableHeaderView to a UITableView with the popular parallax effect using Auto Layout.

Parallax Auto Layout Demo Animation

The requires Xcode 7 and Swift 2.0 to run.

I didn't include code to deal with landscape vs. portrait images, so if you're implementing this using portrait images, you may have to tweak it to achieve the effect you want. Let me know via a Github issue if you would like to see some more examples added.

Image credit: Apple.com

About

Parallax UITableView header using Auto Layout

License:MIT License


Languages

Language:Swift 100.0%