如何在PlayGround中预览自定义View? 代码效果展示 代码 import UIKit import PlaygroundSupport let view = UIView(); view.frame = CGRect(x: 0, y: 0, width: 200,height: 200); view.backgroundColor = UIColor.red; PlaygroundPage.current.liveView = view 效果展示