Update method name for changing props on CellSizeCalculator

This should be done in viewDidLoad, not
configureAvatarView
This commit is contained in:
Brandon Haugen
2018-06-30 09:10:51 -05:00
parent 2fdde13915
commit c364b04778
+1 -1
View File
@@ -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 {