Skip to content

Instantly share code, notes, and snippets.

View sebjvidal's full-sized avatar

Seb Vidal sebjvidal

View GitHub Profile
import UIKit
import MetalKit
class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
let imageView = UIImageView(image: UIImage(named: "landscape"))
imageView.frame = CGRect(x: 0, y: 200, width: 350, height: 197)
view.addSubview(imageView)