How to add a hyperlink button on iOS Swift?
<p>I'm trying to make a clickable link over a button.
I made this using some Internet help but it didn't work :</p>

<pre><code>    @IBAction func linkClicked(sender: AnyObject) {
    openUrl("http://fr.envisite.net/t5exce")
}
func openUrl(url:String!) {

    let targetURL=NSURL(fileURLWithPath: url)

    let application=UIApplication.sharedApplication()

    application.openURL(targetURL);

}
</code></pre>

<p>It doesn't do anything, no error, just the button doesn't get me on Safari (I use the iOS simulator)</p>