Created
February 24, 2016 15:49
-
-
Save brianmpalma/57177f5df81517c4e7b9 to your computer and use it in GitHub Desktop.
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
extension Bool { | |
mutating func toggle() { | |
self = !self | |
} | |
} | |
var isExpanded: Bool = false | |
isExpanded.toggle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment