---
title: "init(ovalIn:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsbezierpath/init(ovalin:)"
---

# init(ovalIn:)

Creates and returns a new Bézier path object initialized with an oval path inscribed in the specified rectangle.

## Declaration

```swift
init(ovalIn rect: NSRect)
```

## Parameters

- `rect`: The rectangle in which to inscribe an oval.

## Return Value

Return Value An NSBezierPath new path object with the oval path.

## Discussion

Discussion If the aRect parameter specifies a square, the inscribed path is a circle. The path is constructed by starting in the lower-right quadrant of the rectangle and adding arc segments counterclockwise to complete the oval.

## See Also

### Related Documentation

- [appendOval(in:)](appkit/nsbezierpath/appendoval(in:).md)

### Creating a Bézier Path

- [init(rect:)](appkit/nsbezierpath/init(rect:).md)
- [init(roundedRect:xRadius:yRadius:)](appkit/nsbezierpath/init(roundedrect:xradius:yradius:).md)
- [init(cgPath:)](appkit/nsbezierpath/init(cgpath:)-96cxk.md)
- [flattened](appkit/nsbezierpath/flattened.md)
- [reversed](appkit/nsbezierpath/reversed.md)
