Created
February 8, 2017 03:08
-
-
Save christianselig/91ce5ed476dd4adfb6f650d1e82f2442 to your computer and use it in GitHub Desktop.
This file contains 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
bodyNode.willDisplayNodeContentWithRenderingContext = { context in | |
UIGraphicsPushContext(context) | |
let rectanglePath = UIBezierPath(rect: CGRect(x: 10, y: 10, width: 10, height: 10)) | |
UIColor.magenta.setFill() | |
rectanglePath.fill() | |
UIGraphicsPopContext() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment