mirror of
https://github.com/zhigang1992/PerspectiveTransform.git
synced 2026-01-12 17:32:51 +08:00
update playground
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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'/>
|
||||
|
||||
Reference in New Issue
Block a user