please check my image for storing and retrieving data
I am getting an error because I want retrieve image from firebase, my url is string but error states about uiImage cannot be string, is there away I can get an image shown of my uiImageView.
By the Way this is my model view class of user below class User {
var username:String!
var userage:String!
var uid:String!
var profileImageUrl: String!
init (uid:String,dictionary:Dictionary<String,AnyObject>) {
self.uid = uid
if let username = dictionary [ "userName" ] as? String{
self.username = username
}
if let userage = dictionary [ "useAge" ] as? String {
self.userage = userage
}
if let profileImageUrl = dictionary["profileImageUrl"] as? String
{
self.profileImageUrl = profileImageUrl
}
}
}