added debug logic

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-15 13:47:31 -05:00
parent 5cda9843d1
commit 0f6a80a3be

View File

@ -9,6 +9,14 @@ import Foundation
import UIKit
public func DebugLog(_ message: String, file: String = #file, line: Int = #line, function: String = #function) {
#if DEBUG
let path = (file as NSString).lastPathComponent
// using print because NSLog crashes when passing certain optionals
print("[\(path)] \(function) [Line \(line)] : \(message)")
#endif
}
/// Bundle Manager keeps all bundles together for ease of use for searching within any of them for a specific asset
public class BundleManager {
public static var shared = BundleManager()