Created
July 30, 2019 02:27
-
-
Save ufo22940268/ea6402177204ccf44bc800605ff5bc72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import UIKit | |
import AVKit | |
import PlaygroundSupport | |
import Photos | |
let view = UIView(frame: CGRect(origin: .zero, size: CGSize(width: 100, height: 100))) | |
view.frame | |
view.transform = CGAffineTransform(scaleX: 2, y: 2) | |
view.layoutIfNeeded() | |
view.setNeedsDisplay() | |
view.frame | |
DispatchQueue.main.async { | |
print(view.frame) | |
} | |
//PlaygroundPage.current.liveView = rootView | |
//PlaygroundPage.current.needsIndefiniteExecution = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment