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