tilltue / TLPhotoPicker

📷 multiple phassets picker for iOS lib. like a facebook
MIT License
1.88k stars 332 forks source link

Support for having non-square previews + make `selectCameraCell` open to allow for opening custom camera without needing a custom cell #335

Open NickNeedsAName opened 2 years ago

NickNeedsAName commented 2 years ago

This is two parts, the first (selectCameraCell -> open) was done so I could open my own cameraView without needing a custom camera cell. I guess I can get rid of this if you really want, but it's not breaking.

The second part I was pretty amazed to find lacking - all preview cells in the picker are always squares.

Simple fix (great code, easy to do) - add a cellHWAspectRatio to the config, then use that to compute height.