// Generated using SwiftGen, by O.Halligon — https://github.com/AliSoftware/SwiftGen

import Foundation
import UIKit

private class classInSameBundleAsAssets: NSObject {}

public extension UIImage {
  public enum SnapTagsViewAssets : String {
    case RedCloseButton = "RedCloseButton"
    case RoundedButton = "RoundedButton"
    case RoundedButton_WhiteWithGreyBorder = "RoundedButton_WhiteWithGreyBorder"
    case RoundedButtonFilled = "RoundedButtonFilled"
    case YellowCloseButton = "YellowCloseButton"

    public var image: UIImage {
      return UIImage(asset: self)
    }
  }

  convenience init!(asset: SnapTagsViewAssets) {
    let bundle = NSBundle(forClass: classInSameBundleAsAssets.self)
    self.init(named: asset.rawValue, inBundle: bundle, compatibleWithTraitCollection: nil)
  }
}

// Generated using SwiftGen, by O.Halligon — https://github.com/AliSoftware/SwiftGen

import Foundation
import UIKit

public extension UIImage {
  public enum SnapTagsViewAssets : String {
    case RedCloseButton = "RedCloseButton"
    case RoundedButton = "RoundedButton"
    case RoundedButton_WhiteWithGreyBorder = "RoundedButton_WhiteWithGreyBorder"
    case RoundedButtonFilled = "RoundedButtonFilled"
    case YellowCloseButton = "YellowCloseButton"

    public var image: UIImage {
      return UIImage(asset: self)
    }
  }

  convenience init!(asset: SnapTagsViewAssets) {
    self.init(named: asset.rawValue)
  }
}

--- 
+++ 
@@ -2,6 +2,8 @@
 
 import Foundation
 import UIKit
+
+private class classInSameBundleAsAssets: NSObject {}
 
 public extension UIImage {
   public enum SnapTagsViewAssets : String {
@@ -17,6 +19,7 @@
   }
 
   convenience init!(asset: SnapTagsViewAssets) {
-    self.init(named: asset.rawValue)
+    let bundle = NSBundle(forClass: classInSameBundleAsAssets.self)
+    self.init(named: asset.rawValue, inBundle: bundle, compatibleWithTraitCollection: nil)
   }
 }
Fix assets not found (nil) when used as pod
