# `GSNode nextOncurveNode`

*Instance Method*

The next on-curve node in the path.

## Declaration

```swift
func nextOncurve() -> GSNode?
```

```objc
- (GSNode *) nextOncurveNode;
```

```python
nextOncurveNode() -> GSNode
```

## Discussion

For a closed path, navigation wraps around the path. For an open path, this is `nil` when no next on-curve node exists. For a path consisting solely off-curve nodes, returns `nil`.

See also [`GSPath nextOncurveNodeFromIndex:`](/Core/GlyphsCore/GSPath/nextOncurveNodeFromIndex:).

## See Also

### Path Navigation

- [`GSNode nodeIndex`](/Core/GlyphsCore/GSNode/nodeIndex) — The index of the node in its path.
- [`GSNode previousOncurveNode`](/Core/GlyphsCore/GSNode/previousOncurveNode) — The previous on-curve node in the path.

