Skip to content

Commit 80550c2

Browse files
Prakash RajendranPrakash Rajendran
authored andcommitted
Updated ReadMe
1 parent fdcf3b7 commit 80550c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ if device.isPod {
7979
// iPad (real or simulator)
8080
}
8181
```
82+
### To check if running on Simulator
83+
```swift
84+
let device = Device()
85+
if device.isSimulator {
86+
// Running on one of the simulators(iPod/iPhone/iPad)
87+
// Skip doing something irrelevant for Simulator
88+
}
89+
```
90+
8291

8392
### Get the Simulator Device
8493
```swift

0 commit comments

Comments
 (0)