Files
Lightbox/Source/AssetManager.swift
2017-09-25 16:20:21 +02:00

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)
}
}