Set UImage form local path URL - causes crash

Viewed 74

Setting imageviews in collection view with local path URL like this:

let fileURL = documentsUrl.appendingPathComponent(fileName)
myImageView.image  =  UIImage(named: fileURL.path)

Causes crash - images are high quality - tried to reduce size also - still crashes the app with no error message.

2 Answers
Related