From 1ef01a7876c99f91c103566a61a5839f938377d1 Mon Sep 17 00:00:00 2001 From: Anton Schukin Date: Mon, 14 Mar 2016 17:02:20 +0000 Subject: [PATCH] Presenters can responds on cell events directly and implement additional behaviour in addition to interaction handlers --- .../BaseMessage/BaseMessagePresenter.swift | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/ChattoAdditions/Source/Chat Items/BaseMessage/BaseMessagePresenter.swift b/ChattoAdditions/Source/Chat Items/BaseMessage/BaseMessagePresenter.swift index 09b81b75e..5dc1662db 100644 --- a/ChattoAdditions/Source/Chat Items/BaseMessage/BaseMessagePresenter.swift +++ b/ChattoAdditions/Source/Chat Items/BaseMessage/BaseMessagePresenter.swift @@ -100,21 +100,21 @@ public class BaseMessagePresenter CGFloat { + public override func heightForCell(maximumWidth width: CGFloat, decorationAttributes: ChatItemDecorationAttributesProtocol?) -> CGFloat { guard let decorationAttributes = decorationAttributes as? ChatItemDecorationAttributes else { assert(false, "Expecting decoration attributes") return 0 @@ -155,4 +155,16 @@ public class BaseMessagePresenter