Skip to content

Instantly share code, notes, and snippets.

@ufo22940268
Created July 30, 2019 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ufo22940268/ea6402177204ccf44bc800605ff5bc72 to your computer and use it in GitHub Desktop.
Save ufo22940268/ea6402177204ccf44bc800605ff5bc72 to your computer and use it in GitHub Desktop.
//: 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