Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- guard let cell = tableView.dequeueReusableCell(withIdentifier: "ReusableTableViewCell") as? ReusableTableViewCell, indexPath.row < users.count else {
- return UITableViewCell()
- }
- let user = users[indexPath.row]
- let dataProvider = UserReusableCellDataProvider(user: user)
- cell.set(with: dataProvider)
- return cell
- }
Add Comment
Please, Sign In to add comment