Loading images from url in table view using Sdwebimage
1. Podfile
Oct 20, 2020
platform :ios, '8.0'
pod 'SDWebImage', '~> 5.0'
2. In this project i am using Alamofire and swiftyjson pods for url-session.
In func callJsonData() -> i am calling url and appending data in local array.
3. After appending data, table view will reload.
Note:- Using sdwebimage placeholder image can also used
cell.userimg?.sd_setImage(with: URL( string:useringurl[indexPath.row]), placeholderImage: UIImage(named: “userimg”), completed: nil)
https://github.com/nitish912/jsonDataFetch/blob/master/jsonDataFetching/ViewController.swift
project detail - https://github.com/nitish912/jsonDataFetch