Adds new obstacles to the graph.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of obstacle objects to be added to the graph.
Adding a new obstacle to the graph has the same effect as if that obstacle were present when creating the graph—that is, the
GKObstacle class automatically creates new nodes and edges where necessary to describe the navigable area around the complete collection of obstacles.