Skip to content

Commit ae776a4

Browse files
authored
Merge pull request #253 from Concordium/feature/target-cond-fix
Feature/target cond fix
2 parents e7f3bdc + e690c0b commit ae776a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ioscommon/Commons/UIDevice+JailBroken.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ import UIKit
1111

1212
extension UIDevice {
1313
var isSimulator: Bool {
14-
return TARGET_OS_SIMULATOR != 0
14+
#if targetEnvironment(simulator)
15+
return true
16+
#else
17+
return false
18+
#endif
1519
}
1620

1721
var isJailBroken: Bool {

0 commit comments

Comments
 (0)