Skip to content

Instantly share code, notes, and snippets.

@salmaanahmed
Created January 28, 2019 12:05
Show Gist options
  • Save salmaanahmed/43d17c5043a0cdb6a1e2671ae9de933d to your computer and use it in GitHub Desktop.
Save salmaanahmed/43d17c5043a0cdb6a1e2671ae9de933d to your computer and use it in GitHub Desktop.
Compilation conditions before 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