alexhillc / AXPhotoViewer

An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos.
https://www.cocoacontrols.com/controls/axphotoviewer
MIT License
642 stars 120 forks source link

Method 'shared' was used as a property; add () to call it #77

Open rlindsey2 opened 4 years ago

rlindsey2 commented 4 years ago

Hi, Firstly, thanks so much for creating this framework it's amazing.

When updating my podfile I'm getting the compiler error "SDWebImageIntegration Method 'shared' was used as a property; add () to call it". It's on line 66 of the SDWebImageIntegration file.

Current line: guard let operation = SDWebImageManager.shared.loadImage(with: url, options: [], progress: progress, completed: completion) else { return }

Changing it to the following fixes the issue: guard let operation = SDWebImageManager.shared().loadImage(with: url, options: [], progress: progress, completed: completion) else { return }

Not fully aware why this might be happening?