SKTileGroup
A set of tiles that collectively define one type of terrain.
Declaration
class SKTileGroupOverview
An SKTileGroup object contains either the definition of a single tile or an array of SKTileGroupRule objects that define adjacency rules.
You supply a tile group with either:
The definition of a single tile that can be used to populate a tile map node with a single texture.
An array of one or more tile group rules that allow for the automatic placement of textures dependent on their adjacency and the placement weights of their definitions. For example, a tile group may contain nine tile group rules containing the definitions of the central tile and eight edge tiles that, when placed adjacently, appear as a single object.
The preferred method to create tile groups is to use the editor tools in Xcode. However, to work with SpriteKit’s tile support programmatically, see the following articles.