Here is a fun issue I\'m running into after updating to Swift 2.0
Swift 2.0
The error is on the if let url = URL.absoluteString line
if let url = URL.absoluteString
absoluteString isn't an optional value, its just a String. You can check if the URL variable is nil
absoluteString
if let url = yourURLVariable { // do your textView function } else { // handle nil url }