11 lines
273 B
Swift
11 lines
273 B
Swift
import UIKit
|
|
|
|
/// Used to load assets from Lightbox bundle
|
|
class AssetManager {
|
|
|
|
static func image(_ named: String) -> UIImage? {
|
|
let bundle = Bundle(for: AssetManager.self)
|
|
return UIImage(named: "Lightbox.bundle/\(named)", in: bundle, compatibleWith: nil)
|
|
}
|
|
}
|