UICollectionView specific cell bring front of oder cell - ios

As you can see in below video, in collectionView there are 3 cells. I want it become bigger when I touch in centre. everything is OK except one thing.
As you can see in video when order cell is visible and centre cell is bigger in bring to back of visible cell and make it untouchable.
https://www.dropbox.com/s/cn4ujvr6t9f9e2c/ScreenRecording_07-14-2018%2013-08-04.MP4?dl=0
Is there any solution that centre cell always be in front of order cell?

Related

UITableView cell is visible through other cells during animation

I do have a “collapsible cells” in my UITableView. When user taps on a button within cell - it’s internal constraints are recalculated and cell changes it’s size - either to a smaller one or to a bigger one (collapse/expand). My problem is that when one of the last cells is expanded and then user collapsed it - this moving (and collapsing) cell is visible through other cells and between section’s headers - my reputation here is not high enough to show you a screenshot, unfortunately. Cell is built within .xib file, I tried to set “clip to bounds” parameter to TRUE to all views in the contentView of this cell - no effect. Does anybody have an idea - which direction should I look at?

Snap to cell in a UICollectionView

I am currently using a CollectionView within my UIViewController that scrolls horizontally through a variable number of cells (There are 3 cells visible on the display at a time). I want it so that when the user finishes scrolling that the view smoothly snaps/pulls to the cell closest to the center of the screen. Does anyone have suggestions on how this could be done?

Custom tableView cell with parallax scroll

I have to do next task: in my app I have 1 tableView with 4 custom cells. At drag down, first cell should stretch and his content need to be always at center. When i lift finger, cell returns at its standard size. The same thing with last one, when the bottom of the tableView is reached, last cell should stretch. I found many solutions, but all of them are explained how to do this with the bottom of table, but not with cell. I need to do this programmatically, any help will be great.
Examples that i found:
1) https://github.com/BillCarsonFr/ScrollviewParallax
2) https://github.com/nrj/StretchyHeaderCollectionViewLayout

Is it possible to figure out what part of the cell is visible from inside the cell subclass?

In my cell subclass the user can slide the cell for actions, just like in Mail.app. However, the cells can be much larger than Mail.app, sometimes up to 1,000pt which means it requires the table to be scrolled to read fully.
This means that the normal strategy of simply centering the actions vertically in the cell will not work, as the vertical center could very well not be visible. So I want to display it in the vertical center of the visible area.
Is this possible to do within the UITableViewCell subclass where the sliding action is occurring? Figuring out where the vertical center of the visible area even is?

How to allow UICollectionView to scroll in intervals of the cell width

I have a UICollectionView that scrolls sideways. When it is scrolled I want it to land on a multiple of the cell width. The cells are diamonds and must fit in a very precise location.
Example: If user scrolls, then the scroll will happen as normal (or maybe semi-paged) and then when it stops, make sure it stops at a multiple so the cell can be aligned with the diamonds.
Any idea how to approach this?

Resources