From iOS 8.0+, I am supposed to use WKWebView, but in the official Apple documentation, they add it by setting the view as the WKWebView. I need to add it as a subview, for numerous reasons.
- I have to add buttons/labels above the 
WKWebView. - I can add it by adding a 
UIViewto the storyboard and then setting it by code toWKWebView, which looks neater then adding it by code. 
My code:
@IBOutlet weak var container: UIView!
private var wkWebView: WKWebView!
override func loadView() {
    let webConfig = WKWebViewConfiguration()
    wkWebView = WKWebView(frame: .zero, configuration: webConfig)
    wkWebView.uiDelegate = self
}
override func viewDidLoad() {
    super.viewDidLoad()
    container = wkWebView
    let url = URL(string: "https://google.com")
    let request = URLRequest(url: url!)
    wkWebView.load(request)
}
I have tried this: WKWebView Add to SubView
I have also tried the container.addSubview method, which crashed with a nil pointer.
Every time I load up the app, there's just a black screen.
Any ideas?