Merge branch 'feature/tilet' into 'develop'
updated to use bundle manager See merge request BPHV_MIPS/vds_ios!38
This commit is contained in:
commit
9313654a79
@ -57,11 +57,7 @@ public struct ImageLabelAttribute: AttachmentLabelAttributeModel {
|
|||||||
|
|
||||||
//get a local asset
|
//get a local asset
|
||||||
if let imageName {
|
if let imageName {
|
||||||
guard let bundle = Bundle(identifier: "com.vzw.vds") else {
|
guard let image = BundleManager.shared.image(for: imageName) else {
|
||||||
throw Error.bundleNotFound
|
|
||||||
}
|
|
||||||
|
|
||||||
guard let image = UIImage(named: imageName, in: bundle, with: nil) else {
|
|
||||||
throw Error.imageNotFound(imageName)
|
throw Error.imageNotFound(imageName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -351,9 +351,10 @@ open class EntryField: Control, Accessable {
|
|||||||
if let view = getToolTipView(), let oldText = updatedLabelText {
|
if let view = getToolTipView(), let oldText = updatedLabelText {
|
||||||
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