updated to use bundle manager
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8cdc77764f
commit
d50c61b79b
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user