Instance Method
index(of:)
The linear shape index of a shape, or nil when the shape is not in the layer.
Not available in Objective-C.Not available in Python.
Declaration
func index(of shape: GSShape) -> Int?See Also
Shapes
An array of the shape objects defining the visual part of the layer.
Replaces the shapes without undo registration or KVO notifications.
Replaces the shapes and hints together.
Copies shapes, hints, anchors, and optionally selected nodes from another layer.
The number of shapes in the layer.
Returns the shape at the given linear shape index.
Returns the shape at the given linear shape index without locking.
Removes shapes, anchors, hints, and selection from the layer.