December 01, 2018
This is just another blog post!
import Foundation
// MARK: - Bundle with static framework resources
extension Bundle {
static var resourcesBundle: Bundle? {
guard let bundlePath = Bundle.main.path(forResource: "DLFacebookComments", ofType: "bundle") else {
return .main
}
return Bundle(path: bundlePath)
}
}Funny, ain’t it?
Written by Kyle Mathews who lives and works in San Francisco building useful things. You should follow him on Twitter