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

    context

    Context 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

    context

    Context in which to draw

  • debugDraw() Extension method

    Draw a representation of the receiver meant for debugging the shape in the specified context

    Declaration

    Swift

    public func debugDraw()

    Parameters

    context

    Context in which to draw