PlaygroundRemoteLiveViewProxy
A proxy that facilitates message passing between the always-on live view and its corresponding playground page.
Declaration
class PlaygroundRemoteLiveViewProxyOverview
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.")
}