Xcode 11 / Swift / Conditional Compilation. Using #if #else #endif to vary code.

preview_player
Показать описание
Sometimes, you need to vary your code depending on the environment (DEBUG, RELEASE, your custom one). One of the most common use cases is to use different urls or credentials in development and production. The simplest way is to use conditional compilation coupled with various schemes and build settings (and even targets if that's required). In this video, I'm going to show you a simple example - varying the screen's background color depending on the build configuration settings.
Рекомендации по теме
Комментарии
Автор

the only tutorial That solved for my problem!
thanks!

viniciusemanuel
welcome to shbcf.ru