steve228uk / MessengerKit

:speech_balloon: A UI framework for building messenger interfaces on iOS
MIT License
1.48k stars 129 forks source link

Error when calling insert() #5

Closed astrike30 closed 6 years ago

astrike30 commented 6 years ago

When I call self.insert in my MSGMessengerViewController I get the error Thread 1: EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff8) on the line self.collectionView.performBatchUpdates({ in the MSGMessengerViewController + Helpers.swift file. If there's anymore information I should give, please let me know. :D

steve228uk commented 6 years ago

Are you able to let me know the exact line that's triggering the error? Are you able to provide an example project?

steve228uk commented 6 years ago

Hi @astrike30,

I was able to replicate this when not appending a new message to the array containing messages prior to inserting it into collection view. Please ensure that you're doing this.

messages.append([message])
insert(message)

Once tested, please let me know so I can close the issue.

steve228uk commented 6 years ago

Closing due to inactivity.