Introduce isPhone

This commit is contained in:
ismailgulek
2020-08-06 16:32:58 +03:00
parent 3468a53848
commit e967d2aa03
+6
View File
@@ -33,4 +33,10 @@ import UIKit
return false
}
}
/// Returns if the device is a Phone
var isPhone: Bool {
return userInterfaceIdiom == .phone
}
}