From 57cb0614a9d51c0863fc322f59be1b77185c21be Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 20 Nov 2021 11:28:37 -0500 Subject: [PATCH] Fix keyboard getting dismissed when scrolling autocomplete suggestions Presentation controller takes care of dismissing keyboard when swipe down in main scroll view starts --- Tusker/Screens/Compose/ComposeView.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeView.swift b/Tusker/Screens/Compose/ComposeView.swift index 09963f0f0d..d1c08a8d51 100644 --- a/Tusker/Screens/Compose/ComposeView.swift +++ b/Tusker/Screens/Compose/ComposeView.swift @@ -65,7 +65,6 @@ struct ComposeView: View { autocompleteSuggestions } - .onAppear(perform: self.didAppear) .navigationBarTitle("Compose") .actionSheet(isPresented: $uiState.isShowingSaveDraftSheet, content: self.saveAndCloseSheet) .alert(isPresented: $isShowingPostErrorAlert) { @@ -154,11 +153,6 @@ struct ComposeView: View { .disabled(!postButtonEnabled) } - private func didAppear() { - let proxy = UIScrollView.appearance(whenContainedInInstancesOf: [ComposeHostingController.self]) - proxy.keyboardDismissMode = .interactive - } - private func cancel() { if Preferences.shared.automaticallySaveDrafts { // draft is already stored in drafts manager, drafts manager is saved by ComposeHostingController.viewWillDisappear