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...
Barnabas asked 5/11, 2023 at 9:45
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...
Candlefish asked 29/4, 2020 at 10:3
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...
Wickliffe asked 12/8, 2021 at 3:15
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...
iosuicollectionviewuicollectionviewcompositionallayoutuicollectionviewdiffabledatasourcensdiffabledatasourcesnapshot
Heeley asked 17/1, 2022 at 18:50
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...
Yielding asked 2/10, 2022 at 9:5
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 ...
Bath asked 13/10, 2020 at 10:28
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...
Aperiodic asked 30/7, 2021 at 0:36
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 ...
Johnsonjohnsonese asked 28/4, 2022 at 6:11
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...
Tristatristam asked 23/11, 2020 at 9:13
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...
Nativeborn asked 29/10, 2021 at 8:36
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...
Intractable asked 9/9, 2021 at 15:19
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...
iosuicollectionviewuicollectionviewcompositionallayoutuicollectionviewdiffabledatasourcensdiffabledatasourcesnapshot
Bloodstained asked 14/5, 2021 at 19:4
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...
Atalya asked 19/12, 2020 at 11:6
3
Solved
I have a UICollectionViewDiffableDataSourcelike so:
var data:UICollectionViewDiffableDataSource<Section, Message>!
I define my section header's layout like so:
let header = NSCollectionLayou...
Teryn asked 9/1, 2021 at 0:57
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...
Bumbling asked 11/5, 2020 at 16:17
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...
Stier asked 23/5, 2020 at 22:20
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...
Ovovitellin asked 23/4, 2020 at 1:6
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...
Immigration asked 14/4, 2020 at 14:46
1
© 2022 - 2025 — McMap. All rights reserved.