Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
21 views

How to restrict a contextual menu to a single collectionView

I have a view with three collection views on it. I want one of the collection views to have a contextual menu. How do I control that only one of them has the menu? In the code below, I have commented ...
Quailcreek's user avatar
0 votes
0 answers
28 views

UICollectionView UICollectionViewCompositionalLayout with horizontal scrollDirection has overlapping header/footer/content

I am trying to setup a UICollectionView with multiple pages of the same height placed horizontally, only one page visible at a time, each page having a header + rows of buttons + footer. let ...
DrCi's user avatar
  • 1
-1 votes
0 answers
19 views

When using NSCollectionLayoutSection.list, how to specific header height and cell item height?

I am using NSCollectionLayoutSection.list as follow. private func layoutConfig() -> UICollectionViewCompositionalLayout { let layout = UICollectionViewCompositionalLayout { section, ...
Cheok Yan Cheng's user avatar
0 votes
0 answers
16 views

How to smoothly transition a UICollectionView into a UISearchBar when scrolling in Swift?

I'm working on an iOS app in Swift where I have a UICollectionView displaying ads at the top of my screen and another UICollectionView displaying products below it. I want to implement a smooth ...
Ерасыл Адильхан's user avatar
-1 votes
0 answers
16 views

Implementing Sticky Headers with UICollectionView: Choosing Between NSDiffableDataSourceSectionSnapshot and NSDiffableDataSourceSnapshot

NSDiffableDataSourceSectionSnapshot has no knowledge of "Section". It only knows the parent item (first item) and child items (rest of the items). Therefore, we can only use layoutConfig....
Cheok Yan Cheng's user avatar
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 ...
Elangovan Eaaswaramurty's user avatar
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 ...
aboojan's user avatar
  • 143
-2 votes
2 answers
67 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 ...
Bill's user avatar
  • 45.5k
-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 ...
Raimundas Sakalauskas's user avatar
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: ...
user1342352532's user avatar
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
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 ...
Kalzem's user avatar
  • 7,424
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 ...
Negar Moshtaghi's user avatar
0 votes
0 answers
38 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 ...
Ajay Chudasama's user avatar
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 ...
ctr1L's user avatar
  • 17

15 30 50 per page
1
2 3 4 5
744