Instance Method
depth(of:)
Returns the relative depth of the shape within the group.
Not available in Objective-C.Not available in Python.
Declaration
func depth(of shape: GSShape) -> Int?Discussion
0 if the shape is the receiver and nil if the group does not contain the shape.
See Also
Membership
Returns whether the given shape is a member of the group.
The range of layer shape indices that includes all group members and the index of the group shape itself (which is always at the last index of the range).