DK
Size: a a a
DK
q
MF
ОВ
DK
DK
ОВ
ОВ
DK
ОВ
ОВ
SN
DK
SN
class AppDelegate: UIApplicationDelegate {
let isDebug: Bool = {
var isDebug = false
func setDebug() -> Bool {
isDebug = true
return true
}
assert(setDebug())
return isDebug
}()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// for development only
// to make iPhone screen always on when developing app.
// should be removed when app is released
if isDebug {
print("DEBUG MODE")
UIApplication.shared.isIdleTimerDisabled = true
}
return true
}
}
SN
class AppDelegate: UIApplicationDelegate {
let isDebug: Bool = {
var isDebug = false
func setDebug() -> Bool {
isDebug = true
return true
}
assert(setDebug())
return isDebug
}()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// for development only
// to make iPhone screen always on when developing app.
// should be removed when app is released
if isDebug {
print("DEBUG MODE")
UIApplication.shared.isIdleTimerDisabled = true
}
return true
}
}
Appdelegate.swift
DK
SN
ZT
SN
C☭