diff --git a/Tusker/Screens/Compose/MainComposeTextView.swift b/Tusker/Screens/Compose/MainComposeTextView.swift index aeddf260..713d7fbf 100644 --- a/Tusker/Screens/Compose/MainComposeTextView.swift +++ b/Tusker/Screens/Compose/MainComposeTextView.swift @@ -145,8 +145,10 @@ struct MainComposeWrappedTextView: UIViewRepresentable { context.coordinator.uiState = uiState if becomeFirstResponder { - uiView.becomeFirstResponder() DispatchQueue.main.async { + // calling becomeFirstResponder during the SwiftUI update causes a crash on iOS 13 + uiView.becomeFirstResponder() + // can't update @State vars during the SwiftUI update becomeFirstResponder = false } }