im trying to do the follow : user is picking image from photo lib as profile pic -> from now on this image will use as profile pic even if the app closed .
im using this code :
if let imageUrl = info[UIImagePickerController.InfoKey.referenceURL] as? NSURL {
// how can i get the pic url that i can use it when the app is starting ?
}
this is the way i loading photos right now : ( the path is taken from assets )
var img = UIImage(named:getAvatarPath());
btw im using swift 4 .
thanks .