Skip to content

Instantly share code, notes, and snippets.

@codePrincess
Created August 7, 2017 11:45
Show Gist options
  • Save codePrincess/9b49b1e52cf4e71bbe1fe1b8cdcb9f38 to your computer and use it in GitHub Desktop.
Save codePrincess/9b49b1e52cf4e71bbe1fe1b8cdcb9f38 to your computer and use it in GitHub Desktop.
network and handwritten text recognition logic separated away into own classes
import Foundation
import UIKit
import PlaygroundSupport
var myCanvas = MyDoodleCanvas()
myCanvas.backgroundColor = .white
myCanvas.isUserInteractionEnabled = true
var canvasView = UIView(frame: CGRect(x: 0, y: 0, width: 450, height: 630))
myCanvas.frame = canvasView.frame
myCanvas.setup()
canvasView.addSubview((myCanvas))
PlaygroundPage.current.liveView = canvasView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment