---
title: "init(top:left:bottom:right:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiedgeinsets/init(top:left:bottom:right:)-6ff7"
---

# init(top:left:bottom:right:)

Creates an edge insets structure with the specified edges.

## Declaration

```swift
init(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat)
```

## Parameters

- `top`: The inset on the top of an object.
- `left`: The inset on the left of an object.
- `bottom`: The inset on the bottom of an object.
- `right`: The inset on the right of an object.

## Return Value

Return Value An initialized inset structure.

## Discussion

Discussion An inset is a margin around a rectangle. Positive values represent margins closer to the center of the rectangle, while negative values represent margins further from the center.

## See Also

### Creating edge insets

- [init()](uikit/uiedgeinsets/init().md)
