Created
February 13, 2018 08:40
-
-
Save damijanracel/0c4129285d2283aaa3ffe0648bacbf61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment