1234567891011121314151617181920 |
- //
- // TLBundle.swift
- // Pods
- //
- // Created by wade.hawk on 2017. 5. 9..
- //
- //
- import Foundation
- class TLBundle {
- class func podBundleImage(named: String) -> UIImage? {
- let podBundle = Bundle(for: TLBundle.self)
- if let url = podBundle.url(forResource: "TLPhotoPickerController", withExtension: "bundle") {
- let bundle = Bundle(url: url)
- return UIImage(named: named, in: bundle, compatibleWith: nil)!
- }
- return nil
- }
- }
|