import Foundation
import UIKit
extension UIDevice {
public class func isPad() -> Bool {
return UIDevice.current.userInterfaceIdiom == .pad
}
public class func isPhone() -> Bool {
return UIDevice.current.userInterfaceIdiom == .phone
}
}
import Foundation
import UIKit
extension UIDevice {
public class func isPad() -> Bool {
return UIDevice.current.userInterfaceIdiom == .pad
}
public class func isPhone() -> Bool {
return UIDevice.current.userInterfaceIdiom == .phone
}
}