mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Set inputAccessoryViewForKeyboard so that interactive dismissal works.
This commit is contained in:
@@ -92,7 +92,7 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
|
||||
self.toolbarViewDelegate?.roomInputToolbarViewDidTapCancel(self)
|
||||
}
|
||||
}
|
||||
|
||||
inputAccessoryViewForKeyboard = UIView(frame: .zero)
|
||||
let composer = Composer(viewModel: viewModel.context,
|
||||
wysiwygViewModel: wysiwygViewModel,
|
||||
sendMessageAction: { [weak self] content in
|
||||
@@ -101,7 +101,9 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
|
||||
}, showSendMediaActions: { [weak self] in
|
||||
guard let self = self else { return }
|
||||
self.showSendMediaActions()
|
||||
})
|
||||
}).introspectTextView { textView in
|
||||
textView.inputAccessoryView = self.inputAccessoryViewForKeyboard
|
||||
}
|
||||
|
||||
hostingViewController = VectorHostingController(rootView: composer)
|
||||
hostingViewController.publishHeightChanges = true
|
||||
|
||||
Reference in New Issue
Block a user