1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-28 10:40:32 +01:00

Prevent flash of text field

This commit is contained in:
Justin Mazzocchi 2021-02-16 21:32:13 -08:00
parent 376c62e399
commit 872a8722af
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C

View File

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