---
title: PlaygroundRemoteLiveViewProxy
framework: playgroundsupport
role: symbol
role_heading: Class
path: playgroundsupport/playgroundremoteliveviewproxy
---

# PlaygroundRemoteLiveViewProxy

A proxy that facilitates message passing between the always-on live view and its corresponding playground page.

## Declaration

```swift
class PlaygroundRemoteLiveViewProxy
```

## Overview

Overview Because playground pages and the always-on live view run in separate processes, you use a PlaygroundRemoteLiveViewProxy as a wrapper for communicating with the always-on live view. An instance of PlaygroundRemoteLiveViewProxy is automatically created when you've configured the always-on live view in a playground page's LiveView.swift file. It's assigned as the value of PlaygroundPage.current.liveView only when using always-on live view. Otherwise, that property is nil or a local view. guard let remoteView = PlaygroundPage.current.liveView as? PlaygroundRemoteLiveViewProxy else {     fatalError("The always-on live view wasn't configured in this page's LiveView.swift.") }

## Topics

### Sending Messages

- [send(_:)](playgroundsupport/playgroundremoteliveviewproxy/3029570-send.md)

### Receiving Messages

- [delegate](playgroundsupport/playgroundremoteliveviewproxy/3029565-delegate.md)
- [receive(_:)](playgroundsupport/playgroundremoteliveviewproxy/3029569-receive.md)

### Handling Connection Changes

- [liveViewMessageConnectionOpened()](playgroundsupport/playgroundremoteliveviewproxy/3029567-liveviewmessageconnectionopened.md)
- [liveViewMessageConnectionClosed()](playgroundsupport/playgroundremoteliveviewproxy/3029566-liveviewmessageconnectionclosed.md)

### Inspecting Live View Proxies

- [playgroundLiveViewRepresentation](playgroundsupport/playgroundremoteliveviewproxy/3029568-playgroundliveviewrepresentation.md)

## Relationships

### Conforms To

- [PlaygroundLiveViewMessageHandler](playgroundsupport/playgroundliveviewmessagehandler.md)
- [PlaygroundLiveViewable](playgroundsupport/playgroundliveviewable.md)

## See Also

### Page-View Communication

- [Messaging Between a Playground Page and the Always-On Live View](playgroundsupport/messaging_between_a_playground_page_and_the_always-on_live_view.md)
- [PlaygroundRemoteLiveViewProxyDelegate](playgroundsupport/playgroundremoteliveviewproxydelegate.md)
- [PlaygroundLiveViewMessageHandler](playgroundsupport/playgroundliveviewmessagehandler.md)
