---
title: "trimmedPath(from:to:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/path/trimmedpath(from:to:)"
---

# trimmedPath(from:to:)

Returns a partial copy of the path.

## Declaration

```swift
func trimmedPath(from: CGFloat, to: CGFloat) -> Path
```

## Discussion

Discussion The returned path contains the region between from and to, both of which must be fractions between zero and one defining points linearly-interpolated along the path.

## See Also

### Transforming the path

- [applying(_:)](swiftui/path/applying(_:).md)
- [offsetBy(dx:dy:)](swiftui/path/offsetby(dx:dy:).md)
