Answers for "swift how know if simulator is running"

0

swift test if simulator

#if targetEnvironment(simulator)
  // your simulator code
#else
  // your real device code
#endif
Posted by: Guest on June-19-2020

Code answers related to "swift how know if simulator is running"

Code answers related to "Swift"

Browse Popular Code Answers by Language