---
title: "ignoresSafeArea(_:edges:alignment:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/ignoressafearea(_:edges:alignment:)"
---

# ignoresSafeArea(_:edges:alignment:)

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

## Declaration

```swift
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

Return Value A view with an expanded safe area.

## Discussion

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.

## See Also

### Staying in the safe areas

- [ignoresSafeArea(_:edges:)](swiftui/view/ignoressafearea(_:edges:).md)
- [safeAreaInset(edge:alignment:spacing:content:)](swiftui/view/safeareainset(edge:alignment:spacing:content:).md)
- [safeAreaPadding(_:)](swiftui/view/safeareapadding(_:).md)
- [safeAreaPadding(_:_:)](swiftui/view/safeareapadding(_:_:).md)
- [SafeAreaRegions](swiftui/safearearegions.md)
