Created
May 10, 2017 06:20
-
-
Save hyukhur/715d3ab17d19f0666fa9475ea6fbc257 to your computer and use it in GitHub Desktop.
Suger function to remove ! mark.
This file contains hidden or 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
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