     override func viewDidDisappear(_ animated: Bool) {
         super.viewDidDisappear(animated)
         
-        currentSkinName = nil
+        nextSkinName = nil
+    }
+    
+    override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) {
+        
+        vertSizeClass = newCollection.verticalSizeClass
+        
+        coordinator.animate(alongsideTransition: { [weak self] context in
+            self?.collectionView.performBatchUpdates(nil, completion: nil)
+            }, completion: { [weak self] context in
+                self?.collectionView.reloadData()
+        })
+        
+        //        coordinator.animate(alongsideTransition: nil) { [weak self] _ in
+        //            self?.collectionView.collectionViewLayout.invalidateLayout()
+        //            self?.collectionView.reloadData()
+        //        }
     }
 }
 

class ChampionSkinVC : UIViewController {
    
    var viewModel: [SkinVM]!
    private var currentSkinName: String? = nil

    @IBOutlet weak var collectionView: UICollectionView!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        collectionView.dataSource = self
        collectionView.delegate = self
    }
    
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        
        collectionView.contentInset = UIEdgeInsets.zero
    }
    
    override func viewWillAppear(_ animated: Bool) {

        
        navigationController?.hidesBarsOnTap = true
        navigationController?.navigationBar.backItem?.title = " "
        currentSkinName = nil
    }
    
    override func viewDidAppear(_ animated: Bool) {
