Skip to content

Instantly share code, notes, and snippets.

@rikschennink
Created November 24, 2015 07:58
Show Gist options
  • Save rikschennink/26487ce5eb3cddecc3b2 to your computer and use it in GitHub Desktop.
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.
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