Skip to content

Commit

Permalink
Fix broken image path for Carthage
Browse files Browse the repository at this point in the history
  • Loading branch information
SD10 committed Sep 21, 2017
1 parent 7bf013c commit 7d6166f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../MessageKit.podspec

SPEC CHECKSUMS:
MessageKit: 75db0dd0426cfa1af4d4ff19e696dff9b27bae29
MessageKit: 99cd6b337d94b5e31a417614137939406e60d8ec

PODFILE CHECKSUM: 9ac65b8dedf0e1b63fea245b089b6645c4e66309

Expand Down
4 changes: 2 additions & 2 deletions MessageKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MessageKit'
s.version = '0.7.3'
s.version = '0.7.4'
s.license = { :type => "MIT", :file => "LICENSE.md" }

s.summary = 'An elegant messages UI library for iOS.'
Expand All @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
}

s.ios.deployment_target = '9.0'
s.ios.resource_bundle = { 'MessageKitAssets' => 'Assets/MessageKitAssets.bundle/Images/*.png' }
s.ios.resource_bundle = { 'MessageKitAssets' => 'Assets/MessageKitAssets.bundle/Images' }

s.requires_arc = true
end
2 changes: 1 addition & 1 deletion Sources/MessageStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public enum MessageStyle {
private var imagePath: String? {
guard let imageName = imageName else { return nil }
let assetBundle = Bundle.messageKitAssetBundle()
return assetBundle.path(forResource: imageName, ofType: "png")
return assetBundle.path(forResource: imageName, ofType: "png", inDirectory: "Images")
}

private func stretch(_ image: UIImage) -> UIImage {
Expand Down

0 comments on commit 7d6166f

Please sign in to comment.