Flipbook
Flipbook copied to clipboard
A Swift tool to render UIViews to image sequences for use with WatchKit, and accompanying sample WatchKit project.
I wanted to use the framework for a new project and ported it over to Swift 3. Think it could be useful for others as well
I expect a lot of people will be interested in this, so I'm putting up my example code. This uses core image to rotate the image inside an imageview and...
Made it non opaque and now uses drawViewHierarchyInRect to support SpritKit / OpenGL.
It was no problem doing this myself in my own local copy, though would be annoying to keep doing it with no projects.
Example use case: Using this technique, I was able to capture images for two auxiliary views which while not animating themselves, were overlapped by an animations from another view and...
 Not sure if Xcode's image conversion on sending to the app makes this useless, but I tend to run this on any generated...