Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//: 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
You can’t perform that action at this time.