Created
August 7, 2017 11:45
-
-
Save codePrincess/9b49b1e52cf4e71bbe1fe1b8cdcb9f38 to your computer and use it in GitHub Desktop.
network and handwritten text recognition logic separated away into own classes
This file contains hidden or 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 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