---
title: "init(size:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiregion/init(size:)"
---

# init(size:)

Initializes and returns a rectangular region of the specified size.

## Declaration

```swift
init(size: CGSize)
```

## Parameters

- `size`: The size of the region, specified in points.

## Return Value

Return Value A rectangular region of the specified size.

## Discussion

Discussion The center of the rectangle is the origin of the region’s coordinate system.

## See Also

### Creating and initializing regions

- [infinite](uikit/uiregion/infinite.md)
- [init(radius:)](uikit/uiregion/init(radius:).md)
