Skip to content

Instantly share code, notes, and snippets.

View Storeynathaniel's full-sized avatar

Storeynathaniel

View GitHub Profile
@srdjanRakic
srdjanRakic / BUG_REPORT_TEMPLATE.md
Last active January 30, 2021 10:51
Bug report template
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
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