Skip to content

Instantly share code, notes, and snippets.

@salmaanahmed
Created January 28, 2019 12:06
Show Gist options
  • Save salmaanahmed/84ec62e163a0876ee19879834c494245 to your computer and use it in GitHub Desktop.
Save salmaanahmed/84ec62e163a0876ee19879834c494245 to your computer and use it in GitHub Desktop.
Compilation conditions in swift 5
#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