improved error presentation
This commit is contained in:
parent
949cd3292f
commit
a4ede52810
@ -211,11 +211,11 @@ import UIKit
|
|||||||
entryFieldContainer.refreshUI()
|
entryFieldContainer.refreshUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Method to override.
|
/**
|
||||||
/// Intended to add the interactive content (i.e. textField) to the entryFieldContainer.
|
Method to override.
|
||||||
@objc open func setupFieldContainerContent(_ container: UIView) {
|
Intended to add the interactive content (i.e. textField) to the entryFieldContainer.
|
||||||
// To be overridden by subclass.
|
*/
|
||||||
}
|
@objc open func setupFieldContainerContent(_ container: UIView) { }
|
||||||
|
|
||||||
@objc open override func updateView(_ size: CGFloat) {
|
@objc open override func updateView(_ size: CGFloat) {
|
||||||
super.updateView(size)
|
super.updateView(size)
|
||||||
|
|||||||
@ -233,15 +233,6 @@ import UIKit
|
|||||||
entryFieldContainer.addGestureRecognizer(tap)
|
entryFieldContainer.addGestureRecognizer(tap)
|
||||||
|
|
||||||
accessibilityElements = [titleLabel, textField, feedbackLabel]
|
accessibilityElements = [titleLabel, textField, feedbackLabel]
|
||||||
|
|
||||||
// TODO: Remove these two lines.
|
|
||||||
let tapErr = UITapGestureRecognizer(target: self, action: #selector(tapForError))
|
|
||||||
titleLabel.addGestureRecognizer(tapErr)
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Remove this func
|
|
||||||
@objc func tapForError() {
|
|
||||||
showError.toggle()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc open override func updateView(_ size: CGFloat) {
|
@objc open override func updateView(_ size: CGFloat) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user