| Type | Title | About | Project or url | Env |
|---|---|---|---|---|
e.g. Bug report |
e.g. Login Issue |
e.g. Unable to login |
e.g Merchant Panel |
e.g. Staging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum iOSDevice { | |
| case isIphoneSE, isIphone5, isIphone6, isIphone6plus, isIphone7, isIphone7plus, isIphone8, isIphone8plus, isIphoneX, isIpad, isIpadPro | |
| } | |
| extension UIDevice { | |
| public class func whichDevice() -> iOSDevice? { | |
| let isDevice = { (comparision: Array<(Bool, iOSDevice)>) -> iOSDevice? in | |
| var device: iOSDevice? | |
| comparision.forEach({ | |
| device = $0.0 ? $0.1 : device |