From 5f566724bbe448f2fe038b06a5ae9589a03359b0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 3 May 2022 20:14:55 -0400 Subject: [PATCH] Fix compose CW field overflowing --- Tusker/Screens/Compose/ComposeEmojiTextField.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tusker/Screens/Compose/ComposeEmojiTextField.swift b/Tusker/Screens/Compose/ComposeEmojiTextField.swift index d003f5eb..3df54e01 100644 --- a/Tusker/Screens/Compose/ComposeEmojiTextField.swift +++ b/Tusker/Screens/Compose/ComposeEmojiTextField.swift @@ -52,6 +52,9 @@ struct ComposeEmojiTextField: UIViewRepresentable { view.backgroundColor = backgroundColor + // otherwise when the text gets too wide it starts expanding the ComposeView + view.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) + context.coordinator.textField = view context.coordinator.uiState = uiState context.coordinator.text = $text