updated to use bundle manager

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-27 10:48:59 -06:00
parent 8cdc77764f
commit d50c61b79b

View File

@ -57,11 +57,7 @@ public struct ImageLabelAttribute: AttachmentLabelAttributeModel {
//get a local asset
if let imageName {
guard let bundle = Bundle(identifier: "com.vzw.vds") else {
throw Error.bundleNotFound
}
guard let image = UIImage(named: imageName, in: bundle, with: nil) else {
guard let image = BundleManager.shared.image(for: imageName) else {
throw Error.imageNotFound(imageName)
}