update playground

This commit is contained in:
Paul Zabelin
2016-02-23 03:24:48 -08:00
parent 30c53977e0
commit 45978d1279
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
//: Playground - noun: a place where people can play
//: Animation to show tranformation of subview
//: open Playground timeline to see it
import UIKit
import PerspectiveTransform
@@ -25,6 +27,7 @@ containerView.addSubview(view)
let start = Perspective(view.frame)
let transform = start.projectiveTransform(Perspective(destinationView.frame))
print(transform)
UIView.animateWithDuration(1.0,
delay: 0,

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='6.0' target-platform='ios'>
<playground version='6.0' target-platform='ios' display-mode='rendered'>
<pages>
<page name='Animate'/>
<page name='Ovelay'/>