nathantannar4 / InputBarAccessoryView

A simple and easily customizable InputAccessoryView for making powerful input bars with autocomplete and attachments
MIT License
1.17k stars 229 forks source link

bug: Fixed library crash after adding image attachment #237 #250

Closed sgraesser closed 1 year ago

sgraesser commented 1 year ago

What does this implement/fix? Explain your changes.

Fixes Issue #237 by returning the default cell size if the attachment cell is shown and the indexPath is set to the attachment cell.

Does this close any currently open issues?

No

Any relevant logs, error output, etc?

Error reported when the example app crashes: Swift/ContiguousArrayBuffer.swift:600: Fatal error: Index out of range

Where has this been tested?

Devices/Simulators: iPhone 14 Pro simulator

iOS Version: iOs 16.4

Swift Version: 5.7

InputBarAccessoryView Version: 6.2.0