Instance Property

obstacles

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

Declaration

@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.