<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIEdgeInsets/init(top:left:bottom:right:)-1s1t9",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@F@UIEdgeInsetsMake"
  },
  "title" : "init(top:left:bottom:right:)"
}
-->

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

Creates an edge insets structure with the specified edges.

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

## Parameters

`top`

The inset at 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

An initialized inset structure.

## 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

[`UIEdgeInsetsEqualToEdgeInsets`](/documentation/UIKit/UIEdgeInsetsEqualToEdgeInsets)

Returns a Boolean value indicating whether the two edge insets are the same.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)