updated entry field
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a2696ece91
commit
9b80d73b54
@ -110,7 +110,6 @@ open class EntryField: Control, Changeable {
|
|||||||
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
$0.setContentCompressionResistancePriority(.required, for: .vertical)
|
||||||
$0.labelTextPosition = .left
|
$0.labelTextPosition = .left
|
||||||
$0.labelTextStyle = .bodySmall
|
$0.labelTextStyle = .bodySmall
|
||||||
$0.tooltipSize = .small
|
|
||||||
$0.tooltipYOffset = -2
|
$0.tooltipYOffset = -2
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -286,7 +285,7 @@ open class EntryField: Control, Changeable {
|
|||||||
if let oldText = updatedLabelText, !required, !oldText.hasSuffix("Optional") {
|
if let oldText = updatedLabelText, !required, !oldText.hasSuffix("Optional") {
|
||||||
let optionColorAttr = ColorLabelAttribute(location: oldText.count + 2,
|
let optionColorAttr = ColorLabelAttribute(location: oldText.count + 2,
|
||||||
length: 8,
|
length: 8,
|
||||||
color: secondaryColorConfig.getColor(self))
|
color: .red)
|
||||||
|
|
||||||
updatedLabelText = "\(oldText) Optional"
|
updatedLabelText = "\(oldText) Optional"
|
||||||
attributes.append(optionColorAttr)
|
attributes.append(optionColorAttr)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user