mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Update method name for changing props on CellSizeCalculator
This should be done in viewDidLoad, not configureAvatarView
This commit is contained in:
@@ -33,7 +33,7 @@ func configureAvatarView(_ avatarView: AvatarView, for message: MessageType, at
|
||||
|
||||
If you would also like to remove the space the `AvatarView` occupies, you have to change the properties
|
||||
`outgoingAvatarSize` or `incomingAvatarSize` of the `CellSizeCalculator` object for the respective message to `CGSize.zero` in
|
||||
`configureAvatarView(_:AvatarView,for:MessageType,at:IndexPath,in:MessagesCollectionView)`.
|
||||
`viewDidLoad`.
|
||||
|
||||
```Swift
|
||||
if let layout = messagesCollectionView.collectionViewLayout as? MessagesCollectionViewFlowLayout {
|
||||
|
||||
Reference in New Issue
Block a user