Skip to content

Commit

Permalink
Fix image inBundle not available on watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed May 22, 2016
1 parent d808471 commit 3062996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/NetworkingImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ extension NetworkingImage {
static func find(named name: String, inBundle bundle: NSBundle) -> NetworkingImage {
#if os(OSX)
return bundle.imageForResource(name)!
#elseif os(watchOS)
return UIImage(named: name)!
#else
return UIImage(named: name, inBundle: bundle, compatibleWithTraitCollection: nil)!
#endif
Expand Down

0 comments on commit 3062996

Please sign in to comment.