Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import UIKit
import PlaygroundSupport
let image = UIImage(named: "girl")
let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 320, height: 320))
imageView.image = image
imageView.contentMode = .scaleAspectFill
// Live Viewに表示させたいViewを渡す
PlaygroundPage.current.liveView = imageView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment