Declaration

func enumerateMembers(_ code: @escaping @Sendable (GSShape) -> Void)
func enumerateMembers() async -> GSShape

Declaration

- (void) enumerateMembersWithBlock:(void (^)(GSShape *member)) code;

Declaration

enumerateMembersWithBlock_(member: GSShape, code)

Discussion

The order is the same as the order on layer.shapes, i.e., the compositing order (bottom to top).

This enumeration also works when the shape group does not belong to a layer.