From 6f0f61c1273016c6c2efccba29912ab084457a87 Mon Sep 17 00:00:00 2001 From: Alexei Gridnev Date: Mon, 7 Nov 2016 01:29:00 +0200 Subject: [PATCH] Update constraints in SLKTextInputBar on text view content size change --- Source/SLKTextInputbar.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/SLKTextInputbar.m b/Source/SLKTextInputbar.m index 3b90bbfc..38b7d792 100644 --- a/Source/SLKTextInputbar.m +++ b/Source/SLKTextInputbar.m @@ -578,6 +578,9 @@ - (void)slk_didChangeTextViewContentSize:(NSNotification *)notification BOOL shouldHide = (self.textView.numberOfLines == 1) || self.editing; self.charCountLabel.hidden = shouldHide; } + dispatch_async(dispatch_get_main_queue(), ^{ + [self slk_updateConstraintConstants]; + }); } - (void)slk_didChangeContentSizeCategory:(NSNotification *)notification