Fix emoji picker not appearing when replying to status with content warning (#16)

This commit is contained in:
Justin Mazzocchi 2021-03-22 14:35:58 -07:00 committed by GitHub
parent 9cb95624e8
commit 816039549e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ private extension CompositionView {
spoilerTextField.placeholder = NSLocalizedString("status.spoiler-text-placeholder", comment: "")
spoilerTextField.inputAccessoryView = spoilerTextinputAccessoryView
spoilerTextField.tag = spoilerTextinputAccessoryView.tagForInputView
spoilerTextField.isHidden_stackViewSafe = true
spoilerTextField.isHidden_stackViewSafe = !viewModel.displayContentWarning
spoilerTextField.addAction(
UIAction { [weak self] _ in self?.spoilerTextFieldEditingChanged() },
for: .editingChanged)