Last active
March 31, 2020 14:51
-
-
Save khurram18/ecb543628895373086efad463f7b3f02 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
extension ViewController: UITableViewDelegate { | |
// other implementaion | |
func scrollViewDidScroll(_ scrollView: UIScrollView) { | |
updateVisibleLabelPositions() | |
} | |
private func updateVisibleLabelPositions() { | |
guard let cells = tableView.visibleCells as? [TableViewCell] else { return } | |
for cell in cells { | |
updateLabelPosition(cell) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment