Initializer
init(id:)initWithId:initWithId_
Creates a new shapes group with a given ID.
Declaration
init(id groupId: GSShapeGroup.ID)Declaration
- (instancetype) initWithId:(GSShapeGroupID) groupId;Declaration
initWithId_(groupId: GSShapeGroupID) -> GSShapeGroupParameters
groupIdUse 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
Creates the root group for a layer.