0
    @IBOutlet weak var webvw: WKWebView!

override func viewDidLoad() {
    super.viewDidLoad()

    let url = URL(string: "http://www.example.com")
    let request = URLRequest(url: url!)

    webvw.load(request)

Edit: (Replace example with profittneshc) The website will not open in a mac or iOS app... I'm not sure why!

TechyGod
  • 51
  • 9
  • Im assuming that its a website issue as I can load most other websites. I'm baffled as to what to tell them though. – TechyGod Jan 05 '18 at 23:01
  • Make sure that domain is allowed in your `NSAppTransportSecurity` settings. See [this](https://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9) – tfrank377 Jan 12 '18 at 16:28

0 Answers0