TLBundle.swift 484 B

1234567891011121314151617181920
  1. //
  2. // TLBundle.swift
  3. // Pods
  4. //
  5. // Created by wade.hawk on 2017. 5. 9..
  6. //
  7. //
  8. import Foundation
  9. class TLBundle {
  10. class func podBundleImage(named: String) -> UIImage? {
  11. let podBundle = Bundle(for: TLBundle.self)
  12. if let url = podBundle.url(forResource: "TLPhotoPickerController", withExtension: "bundle") {
  13. let bundle = Bundle(url: url)
  14. return UIImage(named: named, in: bundle, compatibleWith: nil)!
  15. }
  16. return nil
  17. }
  18. }