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