# `GSDrawPath segments`

*Instance Method*

## Declaration

```swift
func segments() -> [GSPathSegment]!
```

```objc
- (NSArray<GSPathSegment *> *) segments;
```

```python
segments() -> list[GSPathSegment]
```

