Questions tagged [uicollectionviewflowlayout]

209 questions
1
vote
1 answer

UICollectionView different size cell and item count

Using UICollectionView flow delegate, I'm trying to accomplish this but I still need to remove the huge spacing in the two cell areas. My Code : func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout:…
a.masri
  • 2,439
  • 1
  • 14
  • 32
1
vote
1 answer

Swift4 - I can not show the CollectionView the first time "Unable to simultaneously satisfy constraints"

I am creating an app with Swift 4, where I make a request to the API and I want to return a result on a CollectionView. But I get the following error, which I think is from constraints: This block is repeated 100 times. And the result is that he…
1
vote
0 answers

How to specify number of rows, columns and spacing for CollectionView Cell

I want to specify number of rows, columns and also space between collection view cell items and then i want the width and height of my cells should be determined by ios . How to do that ? Please check my following code script. When i change the…
1
vote
2 answers

UICollectionView "flow direction"

the typical flow for the UICollectionView is to "move across, then down" I was curious if there was a way to reverse the order of the "flow" i.e go "down first" (for maximum rows, then across.) Similar to this:
1
vote
2 answers

How to horizontally center collectionView items with dynamic width?

Hello I've looked around and haven't been able to find a solution to my question yet. I'm trying horizontally center items of a collectionView where items will have all have different widths and sizes. Because of this, some rows in the section may…
1
vote
1 answer

UICollectionView warning

Warning: The item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values. Code: extension SaleViewController { override func viewWillTransition(to…
1
vote
1 answer

flowLayout.itemSize and flowLayout.minimumInteritemSpacing

I set the cell size in collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath). However, in other callbacks of the collectionView I see that the…
1
vote
1 answer

How to make the collection view upside down?

I'm using the Collection view with vertical scroll direction for one my application. Here, I want to make my Collection view to display upside down without using any CGAffine Transform. Is it possible with the help of Flow Layout? I like to…
sathish
  • 571
  • 1
  • 5
  • 16
1
vote
0 answers

Top to Bottom Collection View Flow Layout with first cell starting at bottom

I am trying to mimic Instagram live comments section where the first cell in the UICollectionView appears at the bottom but the flow is still top to bottom. I.e. everything about the flow layout is the exact same except that the first cell is at…
1
vote
1 answer

Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger

I'm using a tableView with collectionsView inside cells. When I scroll tableView, this message appears in console: NameOfProject[1108:15021] The relevant UICollectionViewFlowLayout instance is , and it is attached to ; layer = ; contentOffset:…
1
vote
0 answers

Make UICollectionViewFlowLayout look like cells are hiding to the background

I came across this demo and really want to learn how to do this: So far, I've created a subclass to UICollectionViewFlowLayout that fades out the start and end of the cells. Taken from…
1
vote
0 answers

paging scroll in UICollectionView LookLikeAppstore

I want create section in my tableview for collectionView the show a part of cell collectionView in horizontal scroll let width = UIScreen.main.bounds.width layout.itemSize = CGSize(width: width - 24 , height:…
yahya
  • 321
  • 2
  • 16
1
vote
1 answer

UI CollectionView in UICollectionView Cell Programmatically

Hi I am trying to make a home feed like facebook using UICollectionView But in each cell i want to put another collectionView that have 3 cells. you can clone the project here I have two bugs the first is when i scroll on the inner collection…
1
vote
0 answers

Swift 3: Adjust MessageBubbleSize according to Maximum text length

I want to show senderName and timeStamp in messageBubble. I have searched a lot, and tried various solutions mentioned in issues section of JSQMessagesViewController Library and on SO. I tried adjusting width in sizeForItemAt but it did not reflect…
1
vote
0 answers

Toward a lighter view controller, is there any better way to customize UICollectionViewFlowLayout?

Is there any way to customize UICollectionViewFlowLayout, without UICollectionViewDelegateFlowLayout methods ? And could parse the UICollectionViewLayoutAttributes with size given, without giving origin? So I need not implement the frame of per…
dengApro
  • 3,848
  • 2
  • 27
  • 41