这是我第一次使用 MessageKit。我正在尝试自定义我的视图,但找不到任何有关如何执行此操作的有用信息,例如设置插图和更改背景颜色。
我想从标题栏下方启动视图并更改背景颜色和消息的背景颜色。
func backgroundColor(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> UIColor {
return isFromCurrentSender(message: message) ? UIColor.myGold : UIColor.headingGold
}
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。