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

# ignoresSafeArea(_:edges:alignment:)

Expands the safe area of a view aligning content within the new
bounds using the provided alignment.

```
@export(implementation) nonisolated func ignoresSafeArea(_ regions: SafeAreaRegions = .all, edges: Edge.Set = .all, alignment: Alignment?) -> 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.

`alignment`

The alignment of this view inside the resulting frame.
Note that most alignment values have no apparent effect when the
size of the frame happens to match that of this view.

## 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,
you can use the alignment property to determine how the fixed
size view should be aligned in the expanded bounds.

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)