Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix animation, tray to browser

  • Loading branch information
Tim Palade authored and sharath-cliqz committed Sep 7, 2018
1 parent d7b9bb2 commit ac24162aa3dc12d388b4c3dabae55349a6dc2578
Showing with 3 additions and 0 deletions.
  1. +3 −0 Client/Frontend/Browser/BrowserTrayAnimators.swift
@@ -43,7 +43,10 @@ private extension TrayToBrowserAnimator {
let tabCollectionViewSnapshot = tabTray.collectionView.snapshotView(afterScreenUpdates: false)!
tabTray.collectionView.alpha = 0
tabCollectionViewSnapshot.frame = tabTray.collectionView.frame
/*Cliqz: Animation fix - View is below bg image (assumption)
container.insertSubview(tabCollectionViewSnapshot, at: 0)
*/
container.insertSubview(tabCollectionViewSnapshot, at: 10) // 10 is there just to make sure it is on top.
// Create a fake cell to use for the upscaling animation
let startingFrame = calculateCollapsedCellFrameUsingCollectionView(tabTray.collectionView, atIndex: expandFromIndex)

0 comments on commit ac24162

Please sign in to comment.