ekazaev / ChatLayout

ChatLayout is an alternative solution to MessageKit. It uses custom UICollectionViewLayout to provide you full control over the presentation as well as all the tools available in UICollectionView. It supports dynamic cells and supplementary view sizes.
MIT License
898 stars 67 forks source link

Combine multiple images and text in a single bubble #15

Closed saqibdb closed 3 years ago

saqibdb commented 3 years ago

Hello, the pod works beautifully and controls are very good as well. But I am wondering if there is any possible way to combine multiple images and text in a single bubble

image

ekazaev commented 3 years ago

@saqibdb Thank you very much. Of course it is possible. You just need to implement it the way you like. For example use the current image cell in the example app and propagate there 4 images instead of 1. I would also recommend to optimize image sizes to that rendering of said images would be seamless.

ChatLayout doesn't enforce you to use any specific UIViews to create your collection cells. You can create them the way you like. It can be any UICollectionViewCell or UICollectionReusableView. There are some generic UIViews bundled with the library that may help you to build them faster. However, you do not have to use them.

saqibdb commented 3 years ago

Allright, yes got it..... Thanks

For anyone using the example, go to ImageView.swift and make multiple imageViews to incorporate the results