Declaration

func moveShapes(_ shapes: [GSShape], copyBuffer: NSMutableArray?, into parentGroup: GSShapeGroup?, childIndex: UInt) -> Bool

Declaration

- (BOOL) moveShapes:(NSArray<GSShape *> *) shapes copyBuffer:(NSMutableArray<GSShape *> *) copyBuffer intoGroup:(GSShapeGroup *) parentGroup childIndex:(NSUInteger) childIndex;

Declaration

moveShapes_copyBuffer_intoGroup_childIndex_(shapes: list[GSShape], copyBuffer: list[GSShape], parentGroup: GSShapeGroup, childIndex: int) -> bool

Parameters

shapes

The shapes to move or copy.

copyBuffer

A buffer for the copied shapes. If nil, the shapes are moved. If not nil, the shapes are copied and the buffer is populated with the copied shapes, sharing the same indices as the source shapes.

parentGroup

The new parent group for the given shapes. If nil, the shapes are moved to the root of the layer’s shape group tree.

childIndex

The insertion index for the given shapes in the new parent group. Note that this index must be valid after the given shapes have temporarily been removed from the layer’s shape group tree.

See Also

Moving Shapes in Groups