---
title: reversing()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uibezierpath/reversing()
---

# reversing()

Creates and returns a new Bézier path object with the reversed contents of the current path.

## Declaration

```swift
func reversing() -> UIBezierPath
```

## Return Value

Return Value A new path object with the same path shape but for which the path has been created in the reverse direction.

## Discussion

Discussion Reversing a path does not necessarily change the appearance of the path when rendered. Instead, it changes the direction in which path segments are drawn. For example, reversing the path of a rectangle (whose line segments are normally drawn starting at the origin and proceeding in a counterclockwise direction) causes its line segments to be drawn in a clockwise direction instead. Drawing a reversed path could affect the appearance of a filled pattern, depending on the pattern and the fill rule in use. This method reverses each whole or partial subpath in the path object individually.

## See Also

### Creating a Bézier path

- [init(rect:)](uikit/uibezierpath/init(rect:).md)
- [init(ovalIn:)](uikit/uibezierpath/init(ovalin:).md)
- [init(roundedRect:cornerRadius:)](uikit/uibezierpath/init(roundedrect:cornerradius:).md)
- [init(roundedRect:byRoundingCorners:cornerRadii:)](uikit/uibezierpath/init(roundedrect:byroundingcorners:cornerradii:).md)
- [init(arcCenter:radius:startAngle:endAngle:clockwise:)](uikit/uibezierpath/init(arccenter:radius:startangle:endangle:clockwise:).md)
- [init(cgPath:)](uikit/uibezierpath/init(cgpath:)-833n8.md)
- [init()](uikit/uibezierpath/init().md)
- [init(coder:)](uikit/uibezierpath/init(coder:).md)
