Major swiftification of MFTextField to TextField.

This commit is contained in:
Kevin G Christiano 2019-10-14 15:24:48 -04:00
parent 10692ee21e
commit 403f0b261b
3 changed files with 436 additions and 328 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,14 +17,31 @@ open class DashLine: MFView {
@objc public var dashColor: UIColor?
//------------------------------------------------------
// MARK: - Initializer
//------------------------------------------------------
public override init(frame: CGRect) {
super.init(frame: .zero)
}
public init() {
super.init(frame: .zero)
}
required public init?(coder: NSCoder) {
super.init(coder: coder)
fatalError("init(coder:) has not been implemented")
}
//------------------------------------------------------
// MARK: - Lifecycle
//------------------------------------------------------
@objc override open func updateView(_ size: CGFloat) {
MVMCoreDispatchUtility.performBlock(onMainThread: { [weak self] in
DispatchQueue.main.async { [weak self] in
self?.setNeedsDisplay()
})
}
}
@objc override open func draw(_ rect: CGRect) {

View File

@ -36,7 +36,7 @@
@"footer": StandardFooterView.class,
@"caretView": CaretView.class,
@"caretButton": CaretButton.class,
@"textField" : MFTextField.class,
@"textField" : TextField.class,
@"digitTextField" : MFDigitTextField.class,
@"checkbox" : Checkbox.class,
@"checkboxWithLabelView" : CheckboxWithLabelView.class,