Questions tagged [uicollectionview]
The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts. Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layouts. Collection views support customizable layouts that can be used to implement multi-column grids, tiled layouts, circular layouts, and many more. Available in iOS 6.0 and later
uicollectionview
14,360
questions
0
votes
1
answer
21
views
Specifying Item Spacing in UICollectionLayoutListConfiguration
Currently, I am using UICollectionViewCompositionalLayout to achieve the following list layout with spacing:
We were thinking of trying out UICollectionLayoutListConfiguration due to its ability to ...
0
votes
0
answers
21
views
image view should be looping with fluid scroll inside horizontal collection view in swift ios
I am having imageview inside the horizontal collection view. Now its a fluid scroll.
need to make image inside the collection looping with fluid scroll.
I am having 2 custom collection view cell, I am ...
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 ...
-1
votes
1
answer
44
views
CollectionView compositional layout
I've been working in a collectionView that shows the cells in this layout.
|-------Featured--------|
|--Normal--| |--Normal--|
|--Normal--| |--Normal--|
But without success.
private func ...
0
votes
0
answers
10
views
how to animation zoom uicollectionview cell and change layout?
At iOS platform,like system "Photos" App,or "Google Photos" App.
Its photo gallery page can animation change photo item size and layout when you pinch gesture at gallery.
Also it ...
-2
votes
2
answers
65
views
Is it possible to use a list-style UICollectionView but have multiple columns?
I'm working on a UICollectionView that has a custom compositional layout with multiple columns. I wanted to add swipe actions to the cells (specifically, delete).
I knew this was possible because oft ...
-1
votes
0
answers
27
views
How to make sure that supplementary view in UICollectionView is always rendered using custom layout
I am trying to implement sticky footers in custom layout (we can't use flow layout). And there are cases where footer is hidden temporarily.
I am subclassing UICollectionViewLayout. I have implemented ...
3
votes
2
answers
78
views
How to use didSelectItemAt method with using UICollectionView?
I have a UICollectionViewCompositionalLayout. And I want to change label on cell click.
I use this code to do it:
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: ...
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
43
views
How to make a simple collectionView on a storyboard display data from a diffable datasource
I'm trying to do something very similar to How to make a simple collection view with Swift (with a storyboard), the only difference being that I want to use a diffable datasource, whereas in the ...
0
votes
1
answer
36
views
How to force break lines of a UILabel cell in a UICollectionView (Compositional Layout)
I have a UICollectionView that acts as a list of tags.
It uses a horizontal compositional layout.
Here is a screenshot:
My problem is that if I have a tag longer than the collection's width, it ...
0
votes
0
answers
17
views
A pager UICollectionView with dynamic height
I’m trying to create a pager at the end of a scroll view. The pager should display different cells with varying text lengths. I’ve implemented this using a UICollectionView, enabled paging, and ...
0
votes
0
answers
36
views
Cell reuse problem in collection view in Swift
I have a collection view and in collection view cell I add video to play I want that only one video play at a time and it working perfectly but when I see status of my cpu in xcode I have a crucial ...
0
votes
0
answers
25
views
Not able to display data on CollectionView Cell
I am new to Swift programming language, I am facing a problem in displaying data in a collectionView Cell although I have properly registered the cell with proper cell Identifer and also getting ...
-1
votes
1
answer
58
views
Undefined behaviour of UICollectionView cells
I'm making a calendar in which you can select a time range. The design of the calendar is made in such a way that at the start and end date of the selected period a circle appears around the number, ...