Instance Method
moveShapes(_:copyBuffer:into:childIndex:) moveShapes:copyBuffer:intoGroup:childIndex: moveShapes_copyBuffer_intoGroup_childIndex_
Moves or copies the given shapes to a new location in the layer’s shape group tree.
Declaration
func moveShapes(_ shapes: [GSShape], copyBuffer: NSMutableArray?, into parentGroup: GSShapeGroup?, childIndex: UInt) -> BoolDeclaration
- (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) -> boolParameters
shapesThe shapes to move or copy.
copyBufferA buffer for the copied shapes. If
nil, the shapes are moved. If notnil, the shapes are copied and the buffer is populated with the copied shapes, sharing the same indices as the sourceshapes.parentGroupThe new parent group for the given shapes. If
nil, the shapes are moved to the root of the layer’s shape group tree.childIndexThe 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
Returns
subjectsreordered such that the relative order is the same as inshapes, excluding any shapes insubjectsthat are members of a shape group insubjects.Combines the given shapes into a new shape group.
Dissolves the given shape group by replacing it with its direct members.