Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

In MemoryViewController I am setting up the collectionView layout in setup(), but this occurs before the view's insets have been set, including the required spaces for the navigationController. ...
brunshte's user avatar
  • 331
0 votes
0 answers
61 views

I want to use UICollection to display the cards. Each card is a cell; maybe it needs a custom UICollectionViewFlowLayout. How can I do this? This is my code, But it can not switch cards. I log self....
xcgg's user avatar
  • 11
0 votes
1 answer
167 views

I am writing a demo about the difference using compositional layout & traditional flow layout with UICollectionView. I found that if I want to set the cell’s width equal to the UICollectionView’s ...
ximmyxiao's user avatar
  • 2,923
0 votes
1 answer
88 views

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,923
0 votes
1 answer
172 views

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,552
1 vote
1 answer
101 views

Preface I'll preface this illustrating the issue visually. Here's a video of the issue: upon rotating the interface, the UICollectionViewCells overlap, generating an unpleasant animation that for sure ...
Baffo rasta's user avatar
1 vote
0 answers
98 views

class SwipeCardComponentVC: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate { @IBOutlet weak var collectionView: UICollectionView! var dataSource = ["Card ...
Ratnesh Pathak's user avatar
1 vote
0 answers
41 views

I'm trying to achieve a collection layout where I can focus on a subset of items, visually pulling them out like Apple does with iMessage threads or folders on the SpringBoard. It's important that I ...
Jake Z's user avatar
  • 125
1 vote
1 answer
81 views

I created a horizontal collection view that calculates its own height, but the height is not calculated as desired. My flowlayout and height constraint codes are as follows: if let flowLayout = ...
Aproachate's user avatar
0 votes
0 answers
118 views

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
2 answers
360 views

I'm trying to achieve a UICollectionView layout that works like a flow layout, but can conditionally stack multiple items of the grid into a single cell. Right now I'm using a helper struct, ...
Jake Z's user avatar
  • 125
0 votes
1 answer
96 views

I want to resize the collection cell by dragging its edge. What is the best possible way? Currently, I am changing the current cell width manually. but it disrupts other cells and if I invalidate ...
Avijit Mondal's user avatar
0 votes
1 answer
321 views

Hi I tried to use compositional layout, while using stage manager rare the app getting crashed. Please refer below error message Terminating app due to uncaught exception '...
iroh's user avatar
  • 623
0 votes
1 answer
172 views

Is it using UICollectionView or UIScrollView? If using UICollectionView then do we have any sample code to have that zoom in and zoom out. My requirement is to create a freeform drawing board on which ...
ajinkya's user avatar
1 vote
2 answers
121 views

I have a collectionView scrolling like parallax but it's active visible cell is on top of the previous and the next cell. But, the problem is when I scrolled from first cell (black) to left/right it ...
Emre Değirmenci's user avatar
0 votes
1 answer
324 views

I have a vertical UICollectionView and when I scroll I want the first cell to be slightly larger than the others. This code partially solves my problem... However, when I scroll to the end of the list,...
Gucci's user avatar
  • 159
0 votes
2 answers
1k views

I need to show separators for every cell in UICollectionView except every first cell of a section. I'm using list layout. So far I have only been able to remove all separators using configuration....
Silis Alin's user avatar
1 vote
1 answer
235 views

I can't manage to get this type of layout: I can only achieve this when I set size of cells in 'sizeForItemAt' method: I tried solutions from Apple like UICollectionViewCompositionalLayout and ...
Maxim's user avatar
  • 43
0 votes
0 answers
80 views

how to use two collectionview inside one ViewController with UiCollectionView Height set two fixed height and may varied according to content size ? BY using NSLayoutConstraint in UIKit.please help me ...
Akshay Gandal's user avatar
0 votes
1 answer
51 views

I have implemented UICollectionView with the vertical scrolling and paging, first image showing properly but after scrolling layout get changed. Code - // MARK: - UICollectionViewDelegateFlowLayout ...
Abhijit Kotangale's user avatar
1 vote
0 answers
31 views

import UIKit class UserProfileController : UICollectionViewController, UICollectionViewDelegateFlowLayout{ override func viewDidLoad() { super.viewDidLoad() collectionView?....
Muhammed Gül's user avatar
0 votes
1 answer
452 views

Hey Everyone and thank you for taking your time to view this, I am trying to make a uiCollectionView scroll horizontally within a uiCollectionViewCell, the background and elements are showing but im ...
Camille Basbous's user avatar
0 votes
2 answers
475 views

i am making app with CollectionView cells using Swift and i fetching posts from my WordPress Website, i want to show posts in CollectionView cell and i want to show full text in Label, but the problem ...
noorapps's user avatar
0 votes
1 answer
431 views

I'm using InfiniteCollectionView class, Once I change the device Orientation from portrait to landscape, half the screen looks black for a second I have also tried the viewWillTransition function by ...
Surender Singh's user avatar
0 votes
2 answers
577 views

I'm writing my own UICollectionViewLayout subclass to have full control over the layout and arrangement of my collection view cells. When computing the item sizes, I want the layout to start with the ...
Mischa's user avatar
  • 17.5k
0 votes
1 answer
119 views

So, the problem is that the gradient stroke is applied in a way that is not clear to me. At the same time, the problem is only when I do the logic of clicking on the cells as a radio button. If you ...
Vlad Chuvashov's user avatar
0 votes
1 answer
147 views

I'm trying to achieve the following using UICollectionViewFlowLayout: Somehow the two small pics are not fitting, here's the code: The code below is in C#, any correct answers in swift will be ...
Ahmed Mohamed Anas's user avatar
2 votes
2 answers
1k views

I am building a list that contains hashtags using the UICompositionalLayout, I have managed to achieve dynamic-sized cells in my sections using the estimated metrics. Which looks like this However, I ...
Sarthak Mishra's user avatar
2 votes
1 answer
693 views

I am using two nested collection views. I have added the ChildCollectionView to the ParentCollectionViewCell, and ChildCollectionView have 3 cells in it but the ParentCollectionViewCell does not ...
Pratik's user avatar
  • 306
0 votes
1 answer
67 views

My problem video: https://streamable.com/2vrdbu As you move around the "Collection View" the objects move around and the assignment doesn't work properly. I tried many methods, but I could ...
iOSDeveloper's user avatar
1 vote
0 answers
164 views

I'm using this library, CHTCollectionViewWaterfallLayout (https://github.com/chiahsien/CHTCollectionViewWaterfallLayout) to try to replicate a feed that's similar to the Pinterest layout or the Imgur ...
pang's user avatar
  • 66
0 votes
1 answer
447 views

I'm trying to add UICollectionView inside a UIView. But it's not interacting in any way. DidSelect in not called. Scrolling is not working. import UIKit class AddressSelectionView: UIView { ...
rv7284's user avatar
  • 1,112
0 votes
0 answers
48 views

I am looking a Horizontal Scrolling UICollectionView with 3 rows and dynamic width, cell not align to the left like the image below as android horizontal scrolling : SetUpCollectionView Code- func ...
Kumar's user avatar
  • 57
0 votes
1 answer
768 views

I have a UICollectionViewFlowLayout assigned in UICollectionView. It's delegate method returns fixed CGSize in sizeForItemAtIndexPath. The problem is if UICollectionViewCell contains UIImageView or ...
Deepak Sharma's user avatar
1 vote
1 answer
41 views

I have a UICollectionViewCell defined in storyboard which has a UILabel added to it's contentView. Collection view uses a flow layout and I return a fixed size of cell in flowlayout delegate as ...
Deepak Sharma's user avatar
0 votes
0 answers
66 views

I have a collection view that can be scrolled both horizontally and vertically. I've implemented it using compositional layout. When I make fast dragging actions across the screen vertically / ...
Dracarys's user avatar
1 vote
1 answer
120 views

I am using two collectionViews A and B one below the other. (I am using A to display headers and B containing the set of data below the header collection view A). Now when I scroll the Collection view ...
Dracarys's user avatar
0 votes
1 answer
180 views

I'm learning to animate collection views and currently use CollectionViewPagingLayout template. I want to use not only swipes for navigation in a collection view - but also buttons. And the idea is ...
Sergey_VC's user avatar
  • 103
0 votes
1 answer
64 views

I need some help with a uicollectionview that I've been trying to implement in Objective-C/xcode: I am unable to have the cells appear/populate the collectionview (CV). Currently I am using the ...
Billy Mack's user avatar
1 vote
0 answers
611 views

After several days of searching, I give up the search and turn to you. I would like a layout like the one shown in the picture. I don't know what the right way should look like, should I use the flow ...
Gibson Neunundsiebzig's user avatar
0 votes
1 answer
946 views

I'm programming a game with a collection view with 121 buttons (11X11), how can I fix my Collection View cells to be a square? I want to increase or decrease the number of cells so the layout has to ...
Alessandro Dinato's user avatar
0 votes
0 answers
140 views

Scrolling a collection view with a large number of supplementary header views is extremely slow. The more sections, the worst is the scrolling performance. (Tested with 5,000 sections). Best to give ...
Joshua's user avatar
  • 2,024
0 votes
1 answer
2k views

Trying to get a "sticky header" that will orthogonally scroll with the section, but only partially, leaving the trailing end exposed until scrolled backwards. Headers don't work as they don'...
nickneedsaname's user avatar
0 votes
1 answer
1k views

Try to add outer border of every section in a collection view. If i'm using cell.layer.border, it will also create an inner border. Is there a simple way to create outer border only for every section ...
lauwis's user avatar
  • 431
3 votes
0 answers
356 views

I am trying to build a view that list items and each item has subitems which users can scroll through horizontally (orthogonal scroll). I know this can be done using a tableview and a horizontal ...
EK_AllDay's user avatar
  • 1,115
5 votes
3 answers
1k views

I ran into a problem when using the simplest UICollectionView and UICollectionViewFlowLayout. The collection itself works fine, but when the cell is removed, there are problems with the animation. ...
kopaty4's user avatar
  • 2,306
1 vote
1 answer
1k views

Here is the preview of layout As you can see this layout has a pattern of cells 0, 1, 2, 0, 1, 2, 0, 1, 2 with respect to the size. I want my layout to depict 0, 1, 2, 1, 2, 1, 2, 1, 2 as the pattern ...
CoderSulemani's user avatar
0 votes
1 answer
312 views

I have a tableView inside a collectionviewCell and i want to set collectionview cell height as tableview contentSize after tableview loaded data. if i set itemSize with CollectionViewFlowlayout it's ...
Jon Striker's user avatar
1 vote
2 answers
1k views

I have a collectionviewcell with multiple textfields, pictures and labels together. The data is dynamically added, which can have shorter or longer labels and pictures making each cell of ...
jahnze's user avatar
  • 13
0 votes
0 answers
386 views

I'm using pinterest tutorial to achieve dynamic cell height according to image's size. But there is a problem: After it downloaded the data, I send the URL to according cell. When the cell receives ...
bao le's user avatar
  • 1,485

1
2 3 4 5
30