<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.0.0 - 27.0.0",
    "macOS: 10.15.0 - 27.0.0",
    "tvOS: 13.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/edgesIgnoringSafeArea(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF"
  },
  "title" : "edgesIgnoringSafeArea(_:)"
}
-->

# edgesIgnoringSafeArea(_:)

Changes the view’s proposed area to extend outside the screen’s safe
areas.

```
nonisolated func edgesIgnoringSafeArea(_ edges: Edge.Set) -> some View
```

## Parameters

`edges`

The set of the edges in which to expand the size
requested for this view.

## Return Value

A view that may extend outside of the screen’s safe area
on the edges specified by `edges`.

## Discussion

Use `edgesIgnoringSafeArea(_:)` to change the area proposed for this
view so that — were the proposal accepted — this view could extend
outside the safe area to the bounds of the screen for the specified
edges.

For example, you can propose that a text view ignore the safe area’s top
inset:

```
VStack {
    Text("This text is outside of the top safe area.")
        .edgesIgnoringSafeArea([.top])
        .border(Color.purple)
    Text("This text is inside VStack.")
        .border(Color.yellow)
}
.border(Color.gray)
```

![A screenshot showing a view whose bounds exceed the safe area of the screen.](images/com.apple.SwiftUI/SwiftUI-View-edgesIgnoringSafeArea@2x.png)

Depending on the surrounding view hierarchy, SwiftUI may not honor an
`edgesIgnoringSafeArea(_:)` request. This can happen, for example, if
the view is inside a container that respects the screen’s safe area. In
that case you may need to apply `edgesIgnoringSafeArea(_:)` to the
container instead.

---

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)