Ich folgte dem Tutorial von Brian Advent https://www.youtube.com/watch?v=FpTY04efWC0 zu meinem TableView animieren, aber seine Animation funktioniert nur auf Zelle, wie kann ich die gleiche Animation auf 3 Sektionen Header tun?Tun Sie die gleiche Animation auf Headersekton als Zelle
Dies ist die Animation auf Zelle
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
}
}