---
title: "persistentSystemOverlays(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/compositorcontent/persistentsystemoverlays(_:)"
---

# persistentSystemOverlays(_:)

Sets the preferred visibility of the non-transient system views overlaying the app.

## Declaration

```swift
nonisolated func persistentSystemOverlays(_ visibility: Visibility) -> some CompositorContent

```

## Parameters

- `visibility`: A value that indicates the visibility of the non-transient system views overlaying the app.

## Discussion

Discussion Use this modifier to influence the appearance of system overlays in your app. The behavior varies by platform. For an ImmersiveSpace, it affects the Home indicator. note: You can indicate a preference with this modifier, but the system might or might not be able to honor that preference. Affected non-transient system views can include, but are not limited to: The Home indicator. The SharePlay indicator. The Multitasking Controls button and Picture in Picture on iPad.
