// // KMCommonDefine.swift // PDF Master // // Created by tangchao on 2023/3/28. // import Foundation /*  KMCommonDefine [共用的定义]  ** 用于定义一些共用的函数、共用的通知名称、其他 */ // MARK: - // MARK: - 共用的函数 public func KMPrint(_ items: Any..., separator: String = " ", terminator: String = "\n") { #if DEBUG print(items, separator: separator, terminator: terminator) #endif } // MARK: - // MARK: - 共用的通知名称 // MARK: - // MARK: - 共用的Block typealias KMItemClickBlock = (_ item: T?, _ index: Int)->() typealias KMCommonClickBlock = (_ index: Int, _ params: Any...)->() typealias KMCommonBlock = (_ params: Any...)->() typealias KMValueDidChangeBlock = (_ value: Any?, [NSKeyValueChangeKey : Any]?)->()