Merge branch 'feature/new_take_textview' of gitlab.verizon.com:BPHV_MIPS/mvm_core_ui into feature/new_take_textview
This commit is contained in:
commit
c913b98aa5
@ -40,14 +40,6 @@ import UIKit
|
||||
/// Holds a reference to the delegating class so this class can internally influence the TextField behavior as well.
|
||||
public weak var didDeleteDelegate: TextInputDidDeleteProtocol?
|
||||
|
||||
var delegateObject: MVMCoreUIDelegateObject?
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Constraint
|
||||
//--------------------------------------------------
|
||||
|
||||
public var heightConstraint: NSLayoutConstraint?
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Initialization
|
||||
//--------------------------------------------------
|
||||
@ -84,20 +76,20 @@ import UIKit
|
||||
}
|
||||
}
|
||||
|
||||
open func updateView(_ size: CGFloat) {
|
||||
|
||||
setNeedsDisplay()
|
||||
}
|
||||
open func updateView(_ size: CGFloat) { }
|
||||
|
||||
/// Will be called only once.
|
||||
open func setupView() {
|
||||
|
||||
translatesAutoresizingMaskIntoConstraints = false
|
||||
initialConfiguration()
|
||||
defaultConfiguration()
|
||||
}
|
||||
|
||||
public func initialConfiguration() {
|
||||
public func defaultConfiguration() {
|
||||
|
||||
text = ""
|
||||
placeholder = ""
|
||||
textAlignment = .left
|
||||
insetsLayoutMarginsFromSafeArea = false
|
||||
showsVerticalScrollIndicator = false
|
||||
showsHorizontalScrollIndicator = false
|
||||
@ -111,25 +103,19 @@ import UIKit
|
||||
isAccessibilityElement = true
|
||||
accessibilityTraits = .staticText
|
||||
font = Styler.Font.RegularBodyLarge.getFont()
|
||||
keyboardType = .default
|
||||
isEditable = true
|
||||
isOpaque = false
|
||||
}
|
||||
|
||||
open func reset() {
|
||||
|
||||
text = ""
|
||||
textAlignment = .left
|
||||
placeholder = ""
|
||||
fontStyle = Styler.Font.RegularBodyLarge
|
||||
placeholderFontStyle = Styler.Font.RegularMicro
|
||||
placeholderTextColor = .mvmCoolGray3
|
||||
font = Styler.Font.RegularBodyLarge.getFont()
|
||||
keyboardType = .default
|
||||
isEditable = true
|
||||
isEnabled = true
|
||||
inputAccessoryView?.removeFromSuperview()
|
||||
inputAccessoryView = nil
|
||||
initialConfiguration()
|
||||
defaultConfiguration()
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user