Skip to content

Commit 437bf53

Browse files
Add isIpad public var
1 parent 779c323 commit 437bf53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/UIDeviceExtensions.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public extension UIDevice {
2525

2626
return parseDeviceModel(identifier)
2727
}
28+
29+
@objc
30+
public var isIpad: Bool {
31+
return deviceModel.name.contains("iPad")
32+
}
2833
}
2934

3035
public enum DeviceModel {

0 commit comments

Comments
 (0)