@objcMembers public class NetManager: NSObject {
@objc public static let shared = NetManager()
public var type: PeripheralSystemVersionType = .normal
}
使用:
导入swift文件:
#import <projectName/projectName-Swift.h>
if (NetManager.shared.type == PeripheralSystemVersionTypeNormal){
} else {
}
网友评论