Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flipped CollectionView (Chat) #27

Open
beamercola opened this issue Apr 27, 2018 · 4 comments
Open

Flipped CollectionView (Chat) #27

beamercola opened this issue Apr 27, 2018 · 4 comments

Comments

@beamercola
Copy link

beamercola commented Apr 27, 2018

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!

@marchy
Copy link

marchy commented Aug 16, 2018

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.

@fmirault
Copy link

I'm trying to do the same effect, does aynone has achieved this successfully ?

@aminosman
Copy link

aminosman commented Jul 10, 2019

Same issue here any update?

@timothyerwin
Copy link

I think flipping around the views is hacky...there are other options available such as updating the content offset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants