CGDrawable
public protocol CGDrawable : Shape
A Shape that can be drawn in Core Graphics
-
Draw the receiver in the specified context
Declaration
Swift
func draw(in context: CGContext)Parameters
contextContext in which to draw
-
Draw a representation of the receiver meant for debugging the shape in the specified context
Declaration
Swift
func debugDraw(in context: CGContext)Parameters
contextContext in which to draw
-
debugDraw()Extension methodDraw a representation of the receiver meant for debugging the shape in the specified context
Declaration
Swift
public func debugDraw()Parameters
contextContext in which to draw
View on GitHub
CGDrawable Protocol Reference