Skip to content

Instantly share code, notes, and snippets.

View phi161's full-sized avatar
💭
⚫️⚫️⚫️

phi161

💭
⚫️⚫️⚫️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am phi161 on github.
  • I am phi161 (https://keybase.io/phi161) on keybase.
  • I have a public key ASBvbMeznfv2XEKCYxDNNKweX6cYr9hmjUs2tArCVyGYlwo

To claim this, I am signing this object:

@phi161
phi161 / coordinate_systems.swift
Last active April 27, 2022 11:27
Converting Between View Coordinate Systems
import UIKit
import PlaygroundSupport
class MyViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Main view
view.backgroundColor = .black
// http://stackoverflow.com/questions/36744537/why-print-is-printing-my-string-as-an-optional
import UIKit
var input: [[String: AnyObject]] = [[:]]
input = [
["key": 101],
["key": 102],
["key": 103]