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

Not able to extend the bubble height with func textCellSizeCalculator #1811

Open
Poojan-Pandyaa opened this issue Sep 1, 2023 · 0 comments
Labels

Comments

@Poojan-Pandyaa
Copy link

`
func textCellSizeCalculator(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> CellSizeCalculator? {

    let cellSizeCalculator = CellSizeCalculator()

    let cell = messagesCollectionView.cellForItem(at: indexPath)        

    let flowLayout = messagesCollectionView.messagesCollectionViewFlowLayout        

    flowLayout.itemSize = CGSize(width: (cell?.frame.width)!, height: (cell?.frame.height)! + 15)

    cellSizeCalculator.configure(attributes: flowLayout)        

    return cellSizeCalculator
}

`

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

No branches or pull requests

1 participant