Instance Method

initWithRules:

Creates and initializes a tile group with the specified tile group rules.

Declaration

- (instancetype)initWithRules:(NSArray<SKTileGroupRule *> *)rules;

Parameters

rules

The tile group rules to determine tile placement.

Return Value

A new tile group.

See Also

Creating Tile Groups

Creating Tile Groups Programmatically

Paint tiles on a map by putting tile definitions in a group that you create in code.

- initWithTileDefinition:

Creates and initializes a simple tile group with a single tile definition.