MDCShapeGenerating

@protocol MDCShapeGenerating <NSCopying>

A protocol for objects that create closed CGPaths of varying sizes.

  • Creates a CGPath for the given size.

    Declaration

    Objective-C

    - (nullable CGPathRef)pathForSize:(CGSize)size;

    Parameters

    size

    The expected size of the generated path.

    Return Value

    CGPathRef A closed path of the provided size. If size is empty, may return NULL.