To change the size of the LiveView game board, set the preferred Content for the viewController object.
import PlaygroundSupport
import UIKit
let viewController = UIViewController()
viewController.preferredContentSize = CGSize(width: 600, height: 600)
PlaygroundPage.current.liveView = viewController
source
share