reconfig.

This commit is contained in:
Kevin G Christiano 2019-10-30 09:58:20 -04:00
parent 3163e9bb40
commit a455511809
4 changed files with 7 additions and 4 deletions

View File

@ -167,7 +167,6 @@ import UIKit
public convenience init(numberOfDigits: Int) {
self.init(frame: .zero)
self.numberOfDigits = numberOfDigits
buildTextFieldsView(size: MVMCoreUISplitViewController.getDetailViewWidth())
}

View File

@ -66,9 +66,12 @@ import UIKit
public override init(bothDelegates: (UITextFieldDelegate & TextFieldDelegate)?) {
super.init(frame: .zero)
setupView()
if let textField = textField {
MVMCoreUICommonViewsUtility.addDismissToolbar(textField, delegate: bothDelegates)
}
setBothTextDelegates(bothDelegates)
}

View File

@ -181,7 +181,7 @@ import UIKit
addSubview(feedbackLabel)
feedbackLabel.heightAnchor.constraint(greaterThanOrEqualToConstant: 15).isActive = true
feedbackLabel.heightAnchor.constraint(greaterThanOrEqualToConstant: 0).isActive = true
feedbackLabel.topAnchor.constraint(equalTo: fieldContainer.bottomAnchor, constant: PaddingOne).isActive = true
feedbackLabelLeading = feedbackLabel.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor)
feedbackLabelLeading?.isActive = true

View File

@ -119,9 +119,10 @@ import UIKit
}
/// - parameter bothDelegates: Sets both MF/UI Text Field Delegates.
public convenience init(bothDelegates: (UITextFieldDelegate & TextFieldDelegate)?) {
self.init(frame: .zero)
public init(bothDelegates: (UITextFieldDelegate & TextFieldDelegate)?) {
super.init(frame: .zero)
setupView()
setBothTextDelegates(bothDelegates)
}