Skip to content

Instantly share code, notes, and snippets.

@sorin-ref
Created November 8, 2018 09:06
Show Gist options
  • Save sorin-ref/85ba92ecf528899731408a6c3777e6fa to your computer and use it in GitHub Desktop.
Save sorin-ref/85ba92ecf528899731408a6c3777e6fa to your computer and use it in GitHub Desktop.
import Cocoa
public class Frame: NSView {
public override func draw(_ dirtyRect: NSRect) {
super.draw(dirtyRect)
// Drawing code here.
let framer = Framer()
framer.getFrameName().draw(in: bounds)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment