How to do lazy loading image on UICollectionview cell using Alamofire 4.?

529 views Asked by At

I have downloaded Alamofire 4 using cocoa pod. Web api is working fine, but for showing image on collection view cell using a URL, I am not getting method for lazy loading. Kindly help me how can I do this?

Pod file format:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '10.0'

target 'XXX' do

  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

  use_frameworks!

pod 'Alamofire', '~> 4.0'

  # Pods for XXX

  target 'XXX' do

    inherit! :search_paths

    # Pods for testing

  end

  target 'XXX' do

    inherit! :search_paths

    # Pods for testing
  end

end

enter image description here

0

There are 0 answers