예제 #1
0
        public override CGSize GetReferenceSizeForHeader(UICollectionView collectionView, UICollectionViewLayout layout, nint section)
        {
            var width = UIScreen.MainScreen.Bounds.Width;

            return(ViewModel.TopBanners == null || HeaderReuseID.IsNullOrEmpty() || ViewModel.TopBanners.Count == 0 ?
                   CGSize.Empty
                    :
                   new CGSize(width, width * 9 / 16));
        }
 public virtual CGSize GetReferenceSizeForHeader(UICollectionView collectionView, UICollectionViewLayout layout, nint section)
 {
     return(HeaderReuseID.IsNullOrEmpty() ? CGSize.Empty : new CGSize(collectionView.Bounds.Width, 44));
 }