Koustov Basu
Koustov Basu

Reputation: 82

UITableviewCell appearance animation like card flip in swift?

I have done some UITableviewCell appearance animation like appear from left/right/top/bottom.

But now there is a new requirement in my on-going project to display a UITableViewCell like a card flip. How can I do this?

Upvotes: 0

Views: 473

Answers (1)

Jaydeep Vora
Jaydeep Vora

Reputation: 6213

I had used in one of my project as below. Hope this will also help you.

To Flip the cell

UIView.transition(with: contentView, duration: 0.6, options: .transitionFlipFromRight, animations: {() -> Void in
        self.contentView.insertSubview(flipView, aboveSubview: normalView)
    }, completion: {(_ finished: Bool) -> Void in
})

Upvotes: 1

Related Questions