Skip to main content

Questions tagged [uicollectionviewcompositionallayout]

The tag has no usage guidance.

uicollectionviewcompositionallayout
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 ...
ximmyxiao's user avatar
  • 2,785
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 ...
Renzo Tissoni's user avatar
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 ...
Danil N.'s user avatar
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 ...
Filippo's user avatar
  • 55
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 ...
harshalb's user avatar
  • 6,052
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 ...
Filippo's user avatar
  • 55
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 ...
Filippo's user avatar
  • 55
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 ...
Filippo's user avatar
  • 55
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: ...
Filippo's user avatar
  • 55
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 ...
ximmyxiao's user avatar
  • 2,785
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 =...
Filippo's user avatar
  • 55
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 ...
iDev's user avatar
  • 515
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( ...
Fattie's user avatar
  • 13.9k
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. ...
S SANTOSH's user avatar
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 ...
Raj D's user avatar
  • 255

15 30 50 per page
1
2 3 4 5
15