getting ready for the next phase.
This commit is contained in:
parent
70a3ad2804
commit
5bc78e594e
@ -17,7 +17,6 @@ open class CaretButton: MFCustomButton, MVMCoreUIMoleculeViewProtocol, MVMCoreUI
|
|||||||
private let CARET_VIEW_HEIGHT: Float = 10.5
|
private let CARET_VIEW_HEIGHT: Float = 10.5
|
||||||
private let CARET_VIEW_WIDTH: Float = 6.5
|
private let CARET_VIEW_WIDTH: Float = 6.5
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
@ -52,8 +51,7 @@ open class CaretButton: MFCustomButton, MVMCoreUIMoleculeViewProtocol, MVMCoreUI
|
|||||||
changeCaretColor()
|
changeCaretColor()
|
||||||
}
|
}
|
||||||
|
|
||||||
public func updateView(_ size: CGFloat) {
|
public func updateView(_ size: CGFloat) { }
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
// MARK: - Functions
|
// MARK: - Functions
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
|
||||||
open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
@objcMembers open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Outlets
|
// MARK: - Outlets
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -120,6 +120,7 @@ open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
|||||||
} else {
|
} else {
|
||||||
messageToTextFieldPin?.constant = 0
|
messageToTextFieldPin?.constant = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
super.descriptionText = newValue
|
super.descriptionText = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -151,7 +152,7 @@ open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
|||||||
|
|
||||||
required public init?(coder: NSCoder) {
|
required public init?(coder: NSCoder) {
|
||||||
super.init(coder: coder)
|
super.init(coder: coder)
|
||||||
fatalError("init(coder:) has not been implemented")
|
fatalError("DigitEntryField xib has not been implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(numberOfDigits: Int) {
|
public init(numberOfDigits: Int) {
|
||||||
@ -239,7 +240,6 @@ open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if numberOfDigits > 0 {
|
if numberOfDigits > 0 {
|
||||||
|
|
||||||
let digitFields = [DigitBox](repeating: createDigitField(), count: numberOfDigits)
|
let digitFields = [DigitBox](repeating: createDigitField(), count: numberOfDigits)
|
||||||
|
|
||||||
for digitField in digitFields {
|
for digitField in digitFields {
|
||||||
@ -313,7 +313,7 @@ open class DigitEntryField: TextEntryField, DigitBoxDelegate {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func setDefaultValidationBlock() {
|
public override func defaultValidationBlock() {
|
||||||
|
|
||||||
weak var weakSelf = self
|
weak var weakSelf = self
|
||||||
|
|
||||||
|
|||||||
@ -37,9 +37,7 @@ import UIKit
|
|||||||
public var showErrorMessage = false
|
public var showErrorMessage = false
|
||||||
|
|
||||||
public var errorMessage: String? {
|
public var errorMessage: String? {
|
||||||
didSet {
|
didSet { feedback = errorMessage }
|
||||||
feedback = errorMessage
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public var isEnabled = true {
|
public var isEnabled = true {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import UIKit
|
|||||||
import MVMCore
|
import MVMCore
|
||||||
|
|
||||||
|
|
||||||
class MdnEntryField: TextEntryField, ABPeoplePickerNavigationControllerDelegate, CNContactPickerDelegate {
|
@objcMembers open class MdnEntryField: TextEntryField, ABPeoplePickerNavigationControllerDelegate, CNContactPickerDelegate {
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -36,8 +36,10 @@
|
|||||||
@"footer": StandardFooterView.class,
|
@"footer": StandardFooterView.class,
|
||||||
@"caretView": CaretView.class,
|
@"caretView": CaretView.class,
|
||||||
@"caretButton": CaretButton.class,
|
@"caretButton": CaretButton.class,
|
||||||
@"textField" : TextEntryField.class,
|
@"textField": TextEntryField.class,
|
||||||
// @"digitTextField" : DigitTextField.class,
|
@"digitEntryField": DigitEntryField.class,
|
||||||
|
@"mdnEntryField" : MdnEntryField.class,
|
||||||
|
@"dropdownEntryField" : DropdownEntryField.class,
|
||||||
@"checkbox" : Checkbox.class,
|
@"checkbox" : Checkbox.class,
|
||||||
@"checkboxWithLabelView" : CheckboxWithLabelView.class,
|
@"checkboxWithLabelView" : CheckboxWithLabelView.class,
|
||||||
@"cornerLabels" : CornerLabels.class,
|
@"cornerLabels" : CornerLabels.class,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user