Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Shrinks any UIView instance to a point in a view similar to the iOS Mail app
tree: a871dc7cde

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ShrinkToExample.xcodeproj
ShrinkToExample
LICENSE
README.md
UITableViewCell+ShrinkTo.h
UITableViewCell+ShrinkTo.m
UIView+ShrinkTo.h
UIView+ShrinkTo.m

README.md

What it is

This repo contains a UIView category called ShrinkTo which will let you easily shrink any view to a point within another view, much like the iOS Mail app.

Here's a demo video.

How to Use

Make sure to link against the QuartzCore framework in your build settings or you'll get linker errors when you try to compile.

Call shrinkToCenterOfView: or shrinkToPoint:inView: on any UIView instance. The latter method takes a point in the second parameter's view coordinate system that specifies where the shrinking view should shrink to.

Thanks to Mike Nachbaur for guides on Core Animation.

Something went wrong with that request. Please try again.