From 45ac40b125b453da51beab7b9218d83f6b256570 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 18 Oct 2020 16:31:41 -0400 Subject: [PATCH] Fix broken Compose layout when replying to long statuses --- Tusker/Screens/Compose/MainComposeTextView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/MainComposeTextView.swift b/Tusker/Screens/Compose/MainComposeTextView.swift index e03325e20c..d2b87e5db5 100644 --- a/Tusker/Screens/Compose/MainComposeTextView.swift +++ b/Tusker/Screens/Compose/MainComposeTextView.swift @@ -36,8 +36,9 @@ struct MainComposeTextView: View { ) { (textView) in self.height = max(textView.contentSize.height, minHeight) } - .frame(height: height ?? minHeight) - }.onAppear { + } + .frame(height: height ?? minHeight) + .onAppear { if !hasFirstAppeared { hasFirstAppeared = true becomeFirstResponder = true