Initializer

init(rules:)

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

Declaration

init(rules: [SKTileGroupRule])

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.

init(tileDefinition: SKTileDefinition)

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