All Questions
Tagged with ios13 uicollectionview
34
questions
1
vote
1
answer
785
views
iOS 13 setting content inset on collection view with compositional layout causes jump
I'm working with compositional layout collection views and need to support back to iOS 13, but I'm running into a strange issue when I update the content inset of the collection view. I'm using ...
1
vote
2
answers
3k
views
Manually invoke context menu in collectionView for cell
I implemented methods for context menu with delegate methods like this:
func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -...
1
vote
0
answers
206
views
How to create two section arrange by horizontal at UICollectionView
I want to arrange UICollectionView cell like this:
picture1
but, i really got like this:
picture2
What should I do to arrange cell layout as shown in picture 1?
private func twoRowLayout() -> ...
0
votes
1
answer
161
views
Button doesn’t pass through touches to collection view cell on iOS 14
I noticed some strange behavior.
I got CollectionViewCell and UIButton in its contentView.
I implemented contextMenuConfigurationForItemAt method, and it works fine on iOS 13. But when I try to test ...
0
votes
2
answers
1k
views
UICollectionViewCompositionalLayout update cell height
I have the following setup:
UICollectionView with self sizing cells, where their height is defined by their content
UICollectionViewCompositionalLayout that defines the dimensions of items like this
...
0
votes
1
answer
54
views
UILongPressGestureRecognizer location function issue in collectionView iOS 13.2
I had this wired flashing with UILongPressGestureRecognizer location(in: UIView?) method when drag around item original position.
there is an unnatural flick when the cell.
it all works fine in iOS ...
2
votes
1
answer
2k
views
UITableView And Diffable Data Source when supporting iOS 12 and 13
I have implemented UITableView Diffable Datasource in my project. It's working fine in IOS 13.
When I run this application below iOS 13 Version then it gives me warning that it available on ios 13 ...
0
votes
0
answers
96
views
Replicate iMessage Stickers app using UICollectionViewCompositionalLayout
I'm trying to replicate the Stickers app inside iMessage using the new UICollectionViewCompositionalLayout.
However, I can't seem to be able to reproduce the horizontal "paging" behavior.
There ...
1
vote
2
answers
4k
views
How do you animate NSCollectionLayoutVisibleItem for compositional UICollectionViewLayouts?
I'm trying out the new compositional layout APIs introduced with iOS13, they're pretty great - but I'm having an issue with one thing in particular and there's very little official documentation about ...
6
votes
1
answer
2k
views
UICollectionView compositional layout not scrolling horizontal items back to beginning
When I try to refresh the data in my UICollectionView that's using iOS 13's new compositional layout, I can't find a way to make horizontally scrolling sections scroll back to their starting point.
...
6
votes
1
answer
3k
views
How to know which UICollectionView cell is triggered for context menu on (iOS 13+) configurationForMenuAtLocation
On iOS 13 we have the beautiful context menu for tableView & collectionView.
I'm using it on UICollectionView like this:
Implementation on 'cellForItemAt indexPath':
let interaction = ...
1
vote
1
answer
55
views
Collection cell removes item on each reloadData() call Swift 5
Please see below image, that is my correct and initial view.
But after reloadData() is called for collectionView then it is removing the "COMPLETED" status label, and if I again repeat that action it ...
1
vote
2
answers
1k
views
iOS 13 CollectionView delegate methods not getting called
We have this code in our app which is running fine for all version of iOS except for iOS 13. In iOS 12 and bellow the delegate methods like cellForItemAt and willDisplayCell are getting called without ...
3
votes
1
answer
696
views
Handle moveItem(at:to:) delegate method when using UICollectionViewDiffableDataSource
I need to use moveItem(at:to:) delegate method in order to move my collection view cells.
When I implement the data source delegation methods it's working fine, but I need to set my data source as ...
-1
votes
1
answer
319
views
How do I set the collectionView position?
I have a UICollectionView build like in the picture. For example, I choose the 5th button and closed and opened the application. I want the 5th button to appear on the screen when the application is ...