Created
November 24, 2015 07:58
-
-
Save rikschennink/26487ce5eb3cddecc3b2 to your computer and use it in GitHub Desktop.
My brain has some trouble with hidden = true vs. hidden = false. hide() and show() not so much.
This file contains 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
import UIKit | |
extension UIView { | |
func hide() { | |
hidden = true | |
} | |
func show() { | |
hidden = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment