Declaration

init(id groupId: GSShapeGroup.ID)

Declaration

- (instancetype) initWithId:(GSShapeGroupID) groupId;

Declaration

initWithId_(groupId: GSShapeGroupID) -> GSShapeGroup

Parameters

groupId

Use a per-layer unique value, for example, [[NSUUID new] UUIDString]. A group ID of the empty string is reserved for root groups (rootGSShapeGroupIDRootGSShapeGroupIDRoot, use rootGroup(withParent:)rootGroupWithParent:rootGroupWithParent_ instead).

Discussion

The shapes array is set by the GSLayer depending on the parentGroupIdGSShapeKeyParentGroupIdGSShapeKeyParentGroupId attribute value of other shapes.

See Also

Creating a Shape Group