From 7a96a98d10c2abd233fd9e6ee0cd5d9f19c38162 Mon Sep 17 00:00:00 2001 From: Jason Ibrahim Date: Mon, 27 Aug 2018 13:35:04 -0700 Subject: [PATCH 1/2] remove needsLayout as its causing the scroll view to jump --- MessageViewController/MessageViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/MessageViewController/MessageViewController.swift b/MessageViewController/MessageViewController.swift index 30b4d98..c21b756 100644 --- a/MessageViewController/MessageViewController.swift +++ b/MessageViewController/MessageViewController.swift @@ -233,7 +233,6 @@ open class MessageViewController: UIViewController, MessageAutocompleteControlle // MARK: MessageAutocompleteControllerLayoutDelegate public func needsLayout(controller: MessageAutocompleteController) { - view.setNeedsLayout() } } From 388648d3b1848cafd62a07f5fe2ba093ce59892c Mon Sep 17 00:00:00 2001 From: Jason Ibrahim Date: Sat, 15 Sep 2018 16:14:30 -0700 Subject: [PATCH 2/2] remove call to setNeedsLayout as its causing jumping behavior in the scroll view (cherry picked from commit d1b7850151c608d247ba4f7670b4478a313efa79) --- .../MessageViewController+MessageViewDelegate.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/MessageViewController/MessageViewController+MessageViewDelegate.swift b/MessageViewController/MessageViewController+MessageViewDelegate.swift index 397ede5..4a557a4 100644 --- a/MessageViewController/MessageViewController+MessageViewDelegate.swift +++ b/MessageViewController/MessageViewController+MessageViewDelegate.swift @@ -17,7 +17,6 @@ extension MessageViewController: MessageViewDelegate { } internal func wantsLayout(messageView: MessageView) { - view.setNeedsLayout() } internal func selectionDidChange(messageView: MessageView) {}