using new toolbar
This commit is contained in:
parent
3d50031f2a
commit
61fdc30513
@ -189,6 +189,7 @@ import UIKit
|
||||
smartQuotesType = .no
|
||||
smartDashesType = .no
|
||||
smartInsertDeleteType = .no
|
||||
inputAccessoryView = nil
|
||||
font = textViewModel?.fontStyle.getFont()
|
||||
isEditable = true
|
||||
isOpaque = false
|
||||
@ -198,6 +199,7 @@ import UIKit
|
||||
|
||||
text = ""
|
||||
inputAccessoryView?.removeFromSuperview()
|
||||
inputAccessoryView = nil
|
||||
initialConfiguration()
|
||||
}
|
||||
|
||||
@ -378,6 +380,11 @@ import UIKit
|
||||
text = textViewModel?.placeholder
|
||||
}
|
||||
|
||||
@objc func dismissFieldInput(_ sender: TextView) {
|
||||
|
||||
resignFirstResponder()
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - UITextViewDelegate
|
||||
//--------------------------------------------------
|
||||
@ -464,7 +471,8 @@ extension TextView: MoleculeViewProtocol {
|
||||
|
||||
if isEditable {
|
||||
FormValidator.setupValidation(for: model, delegate: delegateObject?.formHolderDelegate)
|
||||
MVMCoreUICommonViewsUtility.addDismissToolbar(to: self, delegate: delegateObject?.uiTextViewDelegate)
|
||||
inputAccessoryView = UIToolbar.getToolbarWithDoneButton(delegate: delegateObject?.uiTextViewDelegate,
|
||||
action: #selector(dismissFieldInput))
|
||||
|
||||
if (model.selected ?? false) && !model.wasInitiallySelected {
|
||||
model.wasInitiallySelected = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user