Created
May 15, 2017 20:05
-
-
Save aataraxiaa/ee8c16b28f28f2fcd61723e3c8ca447d to your computer and use it in GitHub Desktop.
This file contains hidden or 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, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { | |
// ... | |
guard fetchedElements.last! != knownOldestElement else { return } | |
// Fetch next page | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment