Created
July 2, 2020 12:26
-
-
Save aratkevich/aa59b18eb5c16d3f8d917bfa2a53e628 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
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