This is incredibly frustrating as I knew how to do this in Swift 2. I am building a message app extension and in a class in my footer in a collection view, I am just trying to open a url. Ive looked at every other post I swear but I get the same errors.
I am trying to do this:
let url = URL(string: "url here")
UIApplication.shared.open(url!, options: [:], completionHandler: nil)
This should be simple. What am I doing wrong here?