<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/ignoresSafeArea(_:edges:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF"
  },
  "title" : "ignoresSafeArea(_:edges:)"
}
-->

# ignoresSafeArea(_:edges:)

Expands the safe area of a view.

```
nonisolated func ignoresSafeArea(_ regions: SafeAreaRegions = .all, edges: Edge.Set = .all) -> some View
```

## Parameters

`regions`

The regions to expand the view’s safe area into. The
modifier expands into all safe area region types by default.

`edges`

The set of edges to expand. Any edges that you
don’t include in this set remain unchanged. The set includes all
edges by default.

## Return Value

A view with an expanded safe area.

## Discussion

By default, the SwiftUI layout system sizes and positions views to
avoid certain safe areas. This ensures that system content like the
software keyboard or edges of the device don’t obstruct your
views. To extend your content into these regions, you can ignore
safe areas on specific edges by applying this modifier.

When expanding the safe area, the SwiftUI layout system proposes
the expanded size to the view. If your view has a fixed size,
the alignment of the view may not be what you expect.

By default, SwiftUI resolves the alignment based on the
edges being ignored. For example, providing only the bottom
edge will result in a bottom alignment being used. You can use
the `View/ignoresSafeArea(_:alignment:)` modifier to
explicitly configure the alignment.

For examples of how to use this modifier,
see [Adding a background to your view](/documentation/SwiftUI/Adding-a-Background-to-Your-View).

---

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)