Questions tagged [uicollectionviewcompositionallayout]
The uicollectionviewcompositionallayout tag has no usage guidance.
uicollectionviewcompositionallayout
225
questions
0
votes
1
answer
13
views
can UICollectionLayoutListConfiguration support footer view like tableFooterView not like section footer view?
I am using UICollectionLayoutListConfiguration to make a UICollectionView layout like UITableView.
But it seem like the only supported footer view mode in UICollectionLayoutListConfiguration is ...
2
votes
0
answers
57
views
UICollectionView glitches when removing sections using Compositional Layouts and diffable data sources
I'm experiencing a problem when rendering removable sections in my collection views. The setup is as follows:
The collection view has two sections. The first one contains only one cell, which when ...
1
vote
0
answers
35
views
How to pin header to the top using compositional layout?
How to pin header to the top using compositional layout? I know about pinToVisibleBounds. But how can I pin header for whole scroll, not only for one section? I tried to use pinToVisibleBounds, but it ...
0
votes
0
answers
66
views
"Attempted to dequeue a cell for a different registration or reuse identifier than the existing cell when reconfiguring an item, which is not allowed"
Searching for my very title (including the quotes) generated no results on Google.
If you run this UIKit app and tap the right bar button item:
class ViewController: UIViewController {
var boolean ...
1
vote
1
answer
37
views
Set correct height to section background view in horizontal collectionview
I am trying out the Modern collectionviews with the below code.
The only problem in this code is the section background height is filling from the last item . If I keep the collection view scrolling ...
0
votes
1
answer
33
views
Reconfigure custom content configuration
If you run the following UIKit app, you will see a collection view with compositional layout (list layout) and a diffable data source.
When you tap on the right bar button item, the payment method ...
0
votes
1
answer
17
views
UICollectionViewListCell not resizing
Please run the following UIKit app.
It uses a collection view with compositional layout (list layout) and a diffable data source.
The collection view has one section with one row.
The cell contains a ...
0
votes
2
answers
92
views
How do I center a UIImageView vertically in a UICollectionViewListCell as a custom accessory?
Please run the following UIKit app.
It uses a collection view with compositional layout (list layout) and a diffable data source.
It has one section with one row.
The cell has an image view as a ...
0
votes
1
answer
14
views
UISearchBar resigns first responder when typing in UICollectionView
The following is a UIKit app with a collection view with one section, whose supplementary view sports a search bar.
When you type, it often resigns first responder.
import UIKit
class ViewController: ...
1
vote
1
answer
59
views
How to use UICollectionViewCompositionalLayout to render a remote image properly in UIKit
I want to display a NSCollectionLayoutItem( contains a image from remote and its aspect ratio is unkown) occupy the device screen horizontally , and still get the correct aspect ratio in Vertical .
So ...
0
votes
1
answer
26
views
Lags in UICollectionView accessories when animatedly applying a snapshot unless .disclosureIndicator() is also an accessory
Please run the following UIKit app.
It displays a collection view with compositional layout (list layout) and diffable data source.
import UIKit
class ViewController: UIViewController {
var bool =...
1
vote
1
answer
39
views
Can't scroll properly using UICollectionViewCompositionalLayout and nested group
Here's the layout I'm trying to achieve. I'm trying to achieve a 2 rows by x items grid using compositional layout. Each row is a group that contains x items align horizontally.
Both row groups are ...
2
votes
1
answer
217
views
When using an UICollectionViewCompositionalLayout, is there a way to have a custom size for only certain items in the datasource?
Say you're using a completely typical layout:
let layout = UICollectionViewCompositionalLayout { (_, _) -> NSCollectionLayoutSection? in
let layoutSize = NSCollectionLayoutSize(
...
0
votes
0
answers
70
views
How can I ensure uniform item widths across a group of same column in a table in a CollectionViewComposite layout?
Now I want to show table with N number of rows and N number of columns with both directional scrolling.
Constraints
By using compositional layout, we need to design a table structured collectionView. ...
0
votes
0
answers
59
views
Waterfall UICollectionViewFlowLayout with expanding cell
I've a UICollectionView with a grid layout of 2 columns. I've used WaterfallTrueCompositionalLayout by eeshishko for the compositional layout.
Cells are expandable on tap of a button inside cell, the ...