uicollectionviewcompositionallayout Questions

2

Solved

I Am using UICollectionViewCompositionalLayout to create dynamic width, fixed height, tag cell type of layout in some sections of my collectionview. When i add a new string to an array in my databa...

1

I have a view controller that displays a collection view with self-sizing cells. The collection view has one section that scrolls horizontally. It looks like this: Problem The collection view b...

3

Solved

I would like to have different backgrounds for different sections in a collection view using compositional layout. Currently I am using NSCollectionLayoutDecorationItem.background to set the backgr...

2

Solved

I have a UICollectionViewLayout grid with three columns. Each item in the column has a cell full of text. I would like all the columns to be the same height as the tallest item in the group. Using ...
Pigmentation asked 19/4, 2022 at 0:56

2

I have looked at this question, which is similar: How to deal with empty items section in UICollectionView CompositionalLayout, but the answer there seems to be either leave sections out in the sna...

2

I was trying to find if there is an approach we can use to give background color to a group while using compositional layout. I tried to find a direct API that i can use but didn't find anything.
Hannus asked 26/5, 2020 at 19:7

1

I was wondering for a while now, what is the current way (if any) to set contentOffset for a collection view using CompositionalLayout. I get it that CompositionalLayout built different and each se...

3

I'm currently facing an issue with compositional layout which can also be seen in Apple's example -> ConferenceNewsFeedViewController. The item height is set to .estimated(100) and the width is ...

3

I'm trying to make collection view with compositional layout which have multi sections but if there is empty items in sections how can I deal with it? if item is empty I don't want to show that sec...

1

Solved

I am using autoScroll on an orthogonal section of the collectionView using compositional layout. I need to invalidate the autoscroll timer as soon as the user manually scrolls the section. I could ...

1

Solved

I set up a collection view and its layout with the new compositional stuff and it has been pretty cool, it seems to be very expandable but I can't find a way to make items centered in the collectio...

1

Solved

I'm creating UICollectionViewCompositionalLayout with NSCollectionLayoutSection. I have section with assigned header. Setting contentInsets on section works as expected but setting contentInsets on...

0

I am able to achieve UICollectionView with dynamic height cell, as shown in the following screenshot. Height of the cell will be automatically adjusted based on content. Here's is the code to achi...

0

I have a collection view (using a compositional layout and a diffable data source) that has a segmented control in its header. When the control value changes, the cells update to a different UIColl...

4

Solved

I'm experiencing a weird layout issue on iOS 14.3 with collection views using a UICollectionViewCompositionalLayout combined in my case with the UICollectionViewDiffableDataSource. The issue is abo...

3

Solved

I have a UICollectionViewDiffableDataSourcelike so: var data:UICollectionViewDiffableDataSource<Section, Message>! I define my section header's layout like so: let header = NSCollectionLayou...

0

Trying to create a stretchy header in Compositional Layout and so far no result, how can I achieve this in a Compositional Layout? Thanks! Checked all samples I could find and non-talked about UICo...
Openminded asked 1/12, 2020 at 15:36

1

I've successfully been able to create a grid layout using UICollectionViewCompositionalLayout. However, I am unable to find a clever way of ensuring the UICollectionViewCell in each row in the grid...

1

Solved

TLDR; Depending on the section, I need the cells to be sized either: Fixed width but dynamic height (for example, full screen width with automatic height depending on the content) Dynamic width b...

0

I am trying to use the latest UICollectionViewCompositionalLayout to display paginated data using the UICollectionViewDiffableDataSource . I wanted to show a sticky header above the section that wo...

0

I am using UICollectionView Compositional Layout and want to have a header that is sticking to the top this should be possible with header.pinToVisibleBounds = true however, during scrolling, t...
1

© 2022 - 2025 — McMap. All rights reserved.