Answers for "swift check if running on simulator"

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 check if running on simulator"

Code answers related to "Swift"

Browse Popular Code Answers by Language