I find this aspect of learning new things in Swift and Xcode very puzzling.
I cannot seem to decipher the actual code I need to write from what I read in the Apple API documentation; In my specific case: the API Reference for 'PlaygroundSupport', and the actual code I need, which is:
import PlaygroundSupport
let containerView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: 375.0, height: 667.0))
PlaygroundPage.current.liveView = containerView
To me this seems like 'hidden knowledge' that I cannot divine from the API. There is no example usage given.
How would I find out from the Apple API that I needed to add UIView (as containerView) in the manner required? How can I learn to read Apple API documentation in the way that is assumed?