reconfig.
This commit is contained in:
parent
3163e9bb40
commit
a455511809
@ -167,7 +167,6 @@ import UIKit
|
||||
public convenience init(numberOfDigits: Int) {
|
||||
self.init(frame: .zero)
|
||||
|
||||
|
||||
self.numberOfDigits = numberOfDigits
|
||||
buildTextFieldsView(size: MVMCoreUISplitViewController.getDetailViewWidth())
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user