[ASDisplayNode] Pass drawParameter in rendering context callbacks (#248)

* Pass drawParameter in rendering context callbacks

* Add changelog

* Fix examples
This commit is contained in:
Michael Schneider
2017-05-08 14:39:40 -07:00
committed by GitHub
parent ad9924abd8
commit 8692428481
6 changed files with 17 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ class PhotoWithInsetTextOverlay : LayoutExampleNode {
backgroundColor = .clear
photoNode.url = URL(string: "http://asyncdisplaykit.org/static/images/layout-examples-photo-with-inset-text-overlay-photo.png")
photoNode.willDisplayNodeContentWithRenderingContext = { context in
photoNode.willDisplayNodeContentWithRenderingContext = { context, drawParameters in
let bounds = context.boundingBoxOfClipPath
UIBezierPath(roundedRect: bounds, cornerRadius: 10).addClip()
}