Login required for access
In order to watch this lesson, you'll need to login to the website.
UIViewController Transition Animations
AppStore JSON APIs
In this lesson, I'll first go over a very simple technique that allows us to animate the tab bar in and out of view using a CGAffineTransform object. Nothing too bad and I find transformations are super useful, so make sure to take advantage of them. Next, we'll create our UITableViewController that contains the details of our App Details in full screen. Enjoy.

iOS 13 Updates

For iOS 13, behavior for the UITabBar has changed for animations. You can no longer use CGAffineTransform and instead you should animate its frame position instead. Make the following changes in the two functions below:

override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {     UIView.animate(withDuration: 0.7, delay: 0, usingSpringWithDamping: 0.7, initialSpringVelocity: 0.7, options: .curveEaseOut, animations: {    // ...     // self.tabBarController?.tabBar.transform = CGAffineTransform(translationX: 0, y: 100)     self.tabBarController?.tabBar.frame.origin.y = self.view.frame.size.height   }     } 
@objc func handleRemoveRedView() {   // ...     //self.tabBarController?.tabBar.transform = .identity   if let tabBarFrame = self.tabBarController?.tabBar.frame {     self.tabBarController?.tabBar.frame.origin.y = self.view.frame.size.height - tabBarFrame.height   } } 

Comments (13)
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
HELP & SUPPORT