Created
January 28, 2019 12:06
-
-
Save salmaanahmed/84ec62e163a0876ee19879834c494245 to your computer and use it in GitHub Desktop.
Compilation conditions in swift 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if swift(<4.2) | |
// This will only be executed if the Swift version is less than 4.2. | |
#endif | |
#if compiler(<4.2) | |
// This will only be executed if the Swift compiler version is less than 4.2. | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment