altered isEditable to editable to align with android
This commit is contained in:
parent
8bb6a7fb1d
commit
7a9d7d8919
@ -280,7 +280,7 @@ import UIKit
|
||||
|
||||
open func originalUI() {
|
||||
|
||||
isEditable = textViewModel?.isEditable ?? true
|
||||
isEditable = textViewModel?.editable ?? true
|
||||
isUserInteractionEnabled = true
|
||||
hideBorders = textViewModel?.hideBorders ?? false
|
||||
borderStrokeColor = .mvmCoolGray3
|
||||
@ -290,7 +290,7 @@ import UIKit
|
||||
|
||||
open func errorUI() {
|
||||
|
||||
isEditable = textViewModel?.isEditable ?? true
|
||||
isEditable = textViewModel?.editable ?? true
|
||||
isUserInteractionEnabled = true
|
||||
hideBorders = textViewModel?.hideBorders ?? false
|
||||
borderStrokeColor = .mvmOrange
|
||||
@ -300,7 +300,7 @@ import UIKit
|
||||
|
||||
open func selectedErrorUI() {
|
||||
|
||||
isEditable = textViewModel?.isEditable ?? true
|
||||
isEditable = textViewModel?.editable ?? true
|
||||
isUserInteractionEnabled = true
|
||||
hideBorders = textViewModel?.hideBorders ?? false
|
||||
borderStrokeColor = .mvmBlack
|
||||
@ -310,7 +310,7 @@ import UIKit
|
||||
|
||||
open func selectedUI() {
|
||||
|
||||
isEditable = textViewModel?.isEditable ?? true
|
||||
isEditable = textViewModel?.editable ?? true
|
||||
isUserInteractionEnabled = true
|
||||
hideBorders = textViewModel?.hideBorders ?? false
|
||||
borderStrokeColor = .mvmBlack
|
||||
@ -320,7 +320,7 @@ import UIKit
|
||||
|
||||
open func disabledUI() {
|
||||
|
||||
isEditable = textViewModel?.isEditable ?? false
|
||||
isEditable = textViewModel?.editable ?? false
|
||||
isUserInteractionEnabled = false
|
||||
hideBorders = textViewModel?.hideBorders ?? false
|
||||
borderStrokeColor = .mvmCoolGray3
|
||||
@ -437,7 +437,7 @@ extension TextView: MoleculeViewProtocol {
|
||||
heightConstraint?.isActive = true
|
||||
}
|
||||
|
||||
isEditable = model.isEditable
|
||||
isEditable = model.editable
|
||||
textAlignment = model.textAlignment
|
||||
textColor = model.enabledTextColor.uiColor
|
||||
hideBorders = model.hideBorders
|
||||
|
||||
@ -26,7 +26,7 @@ open class TextViewModel: TextEntryFieldModel {
|
||||
public var placeholderFontStyle: Styler.Font = Styler.Font.RegularMicro
|
||||
public var showsPlaceholder: Bool = false
|
||||
public var hideBorders: Bool = false
|
||||
public var isEditable: Bool = true
|
||||
public var editable: Bool = true
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Keys
|
||||
@ -41,7 +41,7 @@ open class TextViewModel: TextEntryFieldModel {
|
||||
case hideBorders
|
||||
case placeholderFontStyle
|
||||
case placeholderTextColor
|
||||
case isEditable = "editable"
|
||||
case editable
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
@ -68,8 +68,8 @@ open class TextViewModel: TextEntryFieldModel {
|
||||
self.hideBorders = hideBorders
|
||||
}
|
||||
|
||||
if let isEditable = try typeContainer.decodeIfPresent(Bool.self, forKey: .isEditable) {
|
||||
self.isEditable = isEditable
|
||||
if let editable = try typeContainer.decodeIfPresent(Bool.self, forKey: .editable) {
|
||||
self.editable = editable
|
||||
}
|
||||
|
||||
if let fontStyle = try typeContainer.decodeIfPresent(Styler.Font.self, forKey: .fontStyle) {
|
||||
@ -90,6 +90,6 @@ open class TextViewModel: TextEntryFieldModel {
|
||||
try container.encode(placeholderFontStyle, forKey: .placeholderFontStyle)
|
||||
try container.encode(placeholderTextColor, forKey: .placeholderTextColor)
|
||||
try container.encode(textAlignment, forKey: .textAlignment)
|
||||
try container.encode(isEditable, forKey: .isEditable)
|
||||
try container.encode(editable, forKey: .editable)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user