Skip to content

Instantly share code, notes, and snippets.

@hyukhur
Created May 10, 2017 06:20
Show Gist options
  • Save hyukhur/715d3ab17d19f0666fa9475ea6fbc257 to your computer and use it in GitHub Desktop.
Save hyukhur/715d3ab17d19f0666fa9475ea6fbc257 to your computer and use it in GitHub Desktop.
Suger function to remove ! mark.
protocol Disable {
var not: Bool { get }
}
extension Bool: Disable {
var not: Bool {
return !self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment