public static CGRect ContractingAnimationToCellRect(AssetListViewController toVC, AssetCell toCell) { var origin = new CGPoint( x: toCell.Frame.X, y: toCell.Frame.Y - toVC.CollectionView.ContentOffset.Y ); return(new CGRect(origin, toCell.Frame.Size)); }
public static CGRect ExpandingAnimationFromCellRect(AssetListViewController fromVC, AssetCell fromCell) { var origin = new CGPoint( x: fromCell.Frame.X, y: fromCell.Frame.Y - fromVC.CollectionView.ContentOffset.Y ); return(new CGRect(origin, fromCell.Frame.Size)); }