I followed the tutorial of Brian Advent https://www.youtube.com/watch?v=FpTY04efWC0 to animate my TableView but his animation works only on cell, how can i do the same animation on 3 sections headers ?
This is the animation on cell
func Animation(){
TableViewContent.reloadData()
let cells = TableViewContent.visibleCells
let TableViewHeight = TableViewContent.bounds.size.height
for cell in cells{
cell.transform = CGAffineTransform(translationX: 0, y:TableViewHeight )
}
var delayCounter = 0.0
for cell in cells{
UIView.animate(withDuration: 1.75, delay: delayCounter * 0.05, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: .curveEaseInOut, animations: {
cell.transform = CGAffineTransform.identity}, completion: nil)
delayCounter += 1
}
}