JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  Bundle+Base.swift
//  DHBaseModule
//
//  Created by imou on 2020/4/1.
//  Copyright © 2020 jm. All rights reserved.
//
 
import UIKit
 
extension Bundle {
    
    static var base_bundle: Bundle? = nil
    
    @objc public class func dh_baseBundle() -> Bundle? {
 
        if self.base_bundle == nil, let path = Bundle(for: DHBaseModule.classForCoder()).path(forResource: "DHBaseModuleBundle", ofType: "bundle") {
            self.base_bundle = Bundle(path: path)
        }
        
        return self.base_bundle
    }
}