Merge branch 'develop' into 'feature/develop_mvp_3'

Develop

See merge request BPHV_MIPS/mvm_core_ui!832
This commit is contained in:
Pfeil, Scott Robert 2022-04-01 15:49:27 +00:00
commit aa6558a716
5 changed files with 9 additions and 5 deletions

View File

@ -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) {

View File

@ -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)
}
}

View File

@ -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]?) {

View File

@ -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)

View File

@ -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