I'm tyring to learn swift. I have a simple demo project. I have a variable, and its value is a url which points to an image. when I try to print this value (the value of the URL encoded in the variable), it works fine, but when I try to use that same variable's value at runtime, it fails. What should I do?
var picurl : String!
profilePicView.image = UIImage(named: "\(picurl)") // image is not showing with pic url
print("User name --- \(Username)")
print("User picurl --- \(picurl)")// but here value is printed.
Thank you.