tes cepat jika simulator
#if targetEnvironment(simulator)
// your simulator code
#else
// your real device code
#endif
Repulsive Raccoon
#if targetEnvironment(simulator)
// your simulator code
#else
// your real device code
#endif