Instance Method
enumerateParentGroups(_:)enumerateParentGroupsWithBlock:enumerateParentGroupsWithBlock_
Invokes a block for each containing group, from the direct parent through the root group.
Declaration
func enumerateParentGroups(_ code: @escaping (GSShapeGroup, UnsafeMutablePointer<ObjCBool>) -> Void)Declaration
- (void) enumerateParentGroupsWithBlock:(void (^)(GSShapeGroup *group, BOOL *stop)) code;Declaration
enumerateParentGroupsWithBlock_(group: GSShapeGroup, stop: bool, code)Parameters
codeThe block to invoke for each containing group.
Discussion
No groups are enumerated when parentGroup is nil. Set stop to YES to end the enumeration early.
See Also
Shape Hierarchy
The ID of the parent group.
The direct containing group in the layer’s shape hierarchy.