📜  快速模拟器条件 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:57.604000             🧑  作者: Mango

代码示例1
#if targetEnvironment(simulator)
  // your simulator code
#else
  // your real device code
#endif