---
title: PlaygroundLiveViewSafeAreaContainer
framework: playgroundsupport
role: symbol
role_heading: Protocol
path: playgroundsupport/playgroundliveviewsafeareacontainer
---

# PlaygroundLiveViewSafeAreaContainer

A protocol that ensures that views fit without obstruction within the Swift Playgrounds user interface.

## Declaration

```swift
protocol PlaygroundLiveViewSafeAreaContainer : AnyObject
```

## Overview

Overview This protocol provides liveViewSafeAreaGuide, a layout guide set to the safe area. The safe area is the part of the live view that isn't covered by any Swift Playgrounds user interface elements like the Run button. You use this property to constrain the bounds of your content view inside the bounds of the safe area, which depend on how you set the LiveViewEdgeToEdge key for the current page. When this key is set to NO, the safe area is exactly the same as the live view area. When the key is set to YES, the safe area can be smaller than the live view area.

## Topics

### Accessing the Layout Guide

- [liveViewSafeAreaGuide](playgroundsupport/playgroundliveviewsafeareacontainer/3029546-liveviewsafeareaguide.md)

## See Also

### Live Views

- [PlaygroundLiveViewable](playgroundsupport/playgroundliveviewable.md)
- [PlaygroundLiveViewRepresentation](playgroundsupport/playgroundliveviewrepresentation.md)
