Skip to content

Commit

Permalink
Edit Custom Cell Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
braindrain92 committed Oct 5, 2019
1 parent 2bcc6ea commit 18f4c26
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CUSTOM_CELLS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# MessageKit Custom Cell Guide(s)

- [How can I add a custom cell?](#how-can-i-add-a-custom-cell)
- [Issue Reference](#other-custom-cell-guides)

## How can I add a custom cell?

Expand Down Expand Up @@ -33,7 +32,8 @@ open class MyCustomCell: UICollectionViewCell {
```swift
open class CustomMessageSizeCalculator: MessageSizeCalculator {
open override func messageContainerSize(for message: MessageType) -> CGSize {
//HERE - Customize to size your content appropriately. This just returns a constant size.
// Customize this function implementation to size your content appropriately. This example simply returns a constant size
// Refer to the default MessageKit cell implementations, and the Example App to see how to size a custom cell dynamically
return CGSize(width: 300, height: 130)
}
}
Expand Down Expand Up @@ -80,6 +80,3 @@ internal class ConversationViewController: MessagesViewController {
}
}
```

## Other custom cell guides?
-

0 comments on commit 18f4c26

Please sign in to comment.