Instance Property


The list of obstacle objects in the graph, each of which describes a polygon-shaped impassable area.


@property(nonatomic, readonly) NSArray<GKPolygonObstacle *> *obstacles;

See Also

Working with Obstacles

- addObstacles:

Adds new obstacles to the graph.

- removeObstacles:

Removes the specified obstacle from the graph.

- removeAllObstacles

Removes all obstacles from the graph.

- nodesForObstacle:

Returns the group of nodes corresponding to an obstacle in the graph.