Declaration

func replaceShape(
    at idx: UInt,
    with shape: GSShape
)

Declaration

- (void) replaceShapeAtIndex:(NSUInteger) idx
                   withShape:(GSShape *) shape;

Declaration

replaceShapeAtIndex_withShape_(
    idx: int,
    shape: GSShape
)

Discussion

The new shape receives this layer as its parent and the old shape is detached.

See Also

Removing and Replacing Shapes