Merge branch 'develop' into 'feature/develop_mvp_3'
Develop See merge request BPHV_MIPS/mvm_core_ui!832
This commit is contained in:
commit
aa6558a716
@ -249,6 +249,10 @@ import UIKit
|
||||
//--------------------------------------------------
|
||||
// MARK: - Methods
|
||||
//--------------------------------------------------
|
||||
public override func showErrorView(_ show: Bool) {
|
||||
//do nothing since you should show the error view
|
||||
//within a digitEntryField
|
||||
}
|
||||
|
||||
@objc public func setAsSecureTextEntry(_ secureEntry: Bool) {
|
||||
|
||||
|
||||
@ -58,6 +58,6 @@
|
||||
try super.encode(to: encoder)
|
||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||
try container.encode(options, forKey: .options)
|
||||
try container.encodeIfPresent(options, forKey: .selectedIndex)
|
||||
try container.encodeIfPresent(selectedIndex, forKey: .selectedIndex)
|
||||
}
|
||||
}
|
||||
|
||||
@ -286,6 +286,7 @@ import UIKit
|
||||
entryFieldContainer.disableAllBorders = false
|
||||
feedbackLabel.text = nil
|
||||
entryFieldContainer.reset()
|
||||
entryFieldModel?.updateUI = nil
|
||||
}
|
||||
|
||||
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
||||
|
||||
@ -84,7 +84,7 @@ import UIKit
|
||||
textField.accessibilityValue = nil
|
||||
}
|
||||
|
||||
if textField.isSecureTextEntry {
|
||||
if !textField.isSecureTextEntry {
|
||||
showErrorView(error)
|
||||
}
|
||||
|
||||
@ -294,8 +294,7 @@ import UIKit
|
||||
resignFirstResponder()
|
||||
}
|
||||
|
||||
private func showErrorView(_ show: Bool) {
|
||||
|
||||
open func showErrorView(_ show: Bool) {
|
||||
if show {
|
||||
entryFieldContainer.addSubview(errorImage)
|
||||
|
||||
|
||||
@ -223,7 +223,7 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
|
||||
}
|
||||
|
||||
/// Handles when the controller has committed to be changed.
|
||||
private func commitTo(controller: UIViewController) {
|
||||
open func commitTo(controller: UIViewController) {
|
||||
guard let index = index,
|
||||
index != tabs.selectedIndex else { return }
|
||||
viewController = controller
|
||||
|
||||
Loading…
Reference in New Issue
Block a user