         case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4":
             print("iPad 2")
             return .iPad_2
-            
+
         case "iPad2,5", "iPad2,6", "iPad2,7":
             print("iPad Mini")
             return .iPad_Mini

        case "iPad5,3", "iPad5,4":
            print("iPad Air 2")
            return .iPad_Air_2
            
        case "iPad6,3", "iPad6,4":
            print("iPad Pro 9.7")
            return .iPad_Pro_97


import UIKit

extension RGAppTools where Base: UIDevice {

    /// 获取设备时间
    public var deviceTime: String {
        let deviceTime = Date()
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "YYYY-MM-dd HH:mm:ss"
        return dateFormatter.string(from: deviceTime)
    }
    
    /// 判断是否为 iPhone X 系列
    public static var isIPhoneXSeries: Bool {
        var iPhoneXSeries = false
        if UIDevice.rat.isPhone == false {
            return iPhoneXSeries
        }
        
        if #available(iOS 11.0, *)  {
            if let bottom = UIApplication.shared.delegate?.window??.safeAreaInsets.bottom {
                if bottom > CGFloat(0.0) {
                    iPhoneXSeries = true
                }
            }
        }
        
        return iPhoneXSeries
    }

    /// 判断设备是否为 iPhone
    public static var isPhone: Bool {
        return UIDevice.current.userInterfaceIdiom == .phone
    }
    
    /// 判断设备是否为 iPad
    public static var isPad: Bool {
        return UIDevice.current.userInterfaceIdiom == .pad
    }

    /// 打印当前设备信息
    public static func printDeviceInformations() {
        print("currentDevice: ", UIDevice.current)

        let device = UIDevice()
        print("device.name: ", device.name)
        print("device.model: ", device.model)
        print("device.localizedModel: ", device.localizedModel)

        print("device.systemName: ", device.systemName)
        print("device.systemVersion: ", device.systemVersion)

        print("device.identifierForVendor: ", device.identifierForVendor ?? "\nRGAppTools get device.identifierForVendor failed.")
    }

}


/// Enum of Device Types
public enum DeviceType: String {
    case unknown    =   "unknown",

    //  iPhone
    iPhone_2G           =   "iPhone",
    iPhone_3G           =   "iPhone 3G",
