I have to implement a lot of different types of cells. For each cell, I’m passing the SBDBaseMessage to know in which position the respective cell will be presented.
I have a SBUChannelViewController subclass, in which I override cellForRow method like that:
override public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) {
(...)
return MyCustomChatCell()
}
Cell creation works perfectly, I’ve instantiated my SBUBaseMessageCell subclass and called the configure(message: _, position: _, hideDateView: _, receiptState: _)
method. But here’s the glitch: my cells flipped. Crazy right?
For now I’m doing this workaround:
layer.setAffineTransform(.init(scaleX: 1, y: -1))
But I think that’s an SDK bug.