Instance Property
isRelease
true if this environment is meant for production use cases.var isRelease: Bool { get }
Discussion
This usually means reducing logging, disabling debug information, and sometimes providing warnings about configuration states that are not suitable for production.
Warning
This value is determined at compile time by configuration; it is not based on the actual environment name. This can lead to unxpected results, such as Environment.production.isRelease == false. This is done intentionally to allow scenarios, such as testing production environment behaviors while retaining availability of debug information.