SOLVED: To anybody else that encounters the issue, it seems the way I was setting my constraints was causing the issue. initially from my linked project, I was setting the constraints like so
NSLayoutConstraint.activate([
MainWebView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
MainWebView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
MainWebView.topAnchor.constraint(equalTo: view.topAnchor),
MainWebView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
])
Instead, I just set
MainWebView = WKWebView(frame: view.bounds, configuration: webConfiguration) as well as MainWebView.translatesAutoresizingMaskIntoConstraints to true and
MainWebView.autoresizingMask = [.width, .height] and this seems to work without any errors. I hope this is helpful to someone out there!