Skip to content

Instantly share code, notes, and snippets.

@aratkevich
Created July 2, 2020 12:26
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 aratkevich/aa59b18eb5c16d3f8d917bfa2a53e628 to your computer and use it in GitHub Desktop.
Save aratkevich/aa59b18eb5c16d3f8d917bfa2a53e628 to your computer and use it in GitHub Desktop.
import UIKit
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
var view = UIView(frame: CGRect(x: 0, y: 0, width: 200, height: 00))
var image = UIImageView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
image.backgroundColor = #colorLiteral(red: 0.9529411793, green: 0.6862745285, blue: 0.1333333403, alpha: 1)
image.contentMode = .scaleAspectFill
view.addSubview(image)
PlaygroundPage.current.liveView = view
//PlaygroundPage.current.finishExecution()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment