Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
okhanokbay committed Mar 29, 2018
1 parent 3bacb3b commit 976ba91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MapViewPlus.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Pod::Spec.new do |s|
s.source_files = 'MapViewPlus/Classes/**/*'

s.resource_bundles = {
'MapViewPlus' => ['MapViewPlus/Assets/Assets.xcassets', 'MapViewPlus/Classes/DefaultCalloutView/DefaultCalloutView.xib']
'MapViewPlus' => ['MapViewPlus/*/Assets.xcassets', 'MapViewPlus/Classes/*/DefaultCalloutView.xib']
}

s.frameworks = 'UIKit', 'MapKit'
s.dependency 'Kingfisher', '~> 4.6.3'

Expand Down
3 changes: 2 additions & 1 deletion MapViewPlus/Classes/Helper/ImagesHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ import Foundation

public struct ImagesHelper {
private static var podsBundle: Bundle {
return Bundle(for: MapViewPlus.self)
let bundle = Bundle(for: MapViewPlus.self)
return Bundle(url: bundle.url(forResource: "MapViewPlus", withExtension: "bundle")!)!
}

private static func imageFor(name imageName: String) -> UIImage {
Expand Down

0 comments on commit 976ba91

Please sign in to comment.