BouncyLayout
BouncyLayout copied to clipboard
Flipped CollectionView (Chat)
This pod looks great, super clean. I'm having an issue with a flipped collectionview and cell (chat app) though and not sure why.
I've tried both:
let layout = BouncyLayout()
collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout)
collectionView!.transform = CGAffineTransform.init(rotationAngle: (-(CGFloat)(Double.pi)))
// ...
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
// ...
cell.transform = CGAffineTransform(rotationAngle: CGFloat.pi)
return cell
}
and
let layout = BouncyLayout()
collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout)
collectionView!.transform = CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: 0)
// ...
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
// ...
cell.transform = collectionView.transform
return cell
}
Both create different results. Any ideas? Thanks!
Any ideas for how to achieve this?
Given that messaging is one of the core use cases for this having the reverse items show up properly is key – and hopefully supported by the lib.
Kind thanks.
I'm trying to do the same effect, does aynone has achieved this successfully ?
Same issue here any update?
I think flipping around the views is hacky...there are other options available such as updating the content offset