fixed bug
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d50c61b79b
commit
e5dd94aad9
@ -234,7 +234,7 @@ open class EntryField: Control, Accessable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open func getToolTipView() -> UIView? {
|
open func getToolTipView() -> UIView? {
|
||||||
guard let tooltipTitle, let tooltipContent else {
|
guard let tooltipTitle, let tooltipContent, !tooltipTitle.isEmpty, !tooltipContent.isEmpty else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,8 +352,9 @@ open class EntryField: Control, Accessable {
|
|||||||
tooltipView = view
|
tooltipView = view
|
||||||
let toolTipAction = PassthroughSubject<Void, Never>()
|
let toolTipAction = PassthroughSubject<Void, Never>()
|
||||||
let toolTipUpdateText = "\(oldText) " //create a little space between the final character and tooltip image
|
let toolTipUpdateText = "\(oldText) " //create a little space between the final character and tooltip image
|
||||||
|
|
||||||
let toolTipAttribute = ToolTipLabelAttribute(action: toolTipAction,
|
let toolTipAttribute = ToolTipLabelAttribute(action: toolTipAction,
|
||||||
location: toolTipUpdateText.count,
|
location: toolTipUpdateText.count - 1,
|
||||||
length: 1,
|
length: 1,
|
||||||
tintColor: primaryColorConfig.getColor(self))
|
tintColor: primaryColorConfig.getColor(self))
|
||||||
updatedLabelText = toolTipUpdateText
|
updatedLabelText = toolTipUpdateText
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user