Skip to content

Instantly share code, notes, and snippets.

@parrotbait
Created April 3, 2019 17:26
Show Gist options
  • Save parrotbait/9bd45f43d67b8ccef4a3bf09542703db to your computer and use it in GitHub Desktop.
Save parrotbait/9bd45f43d67b8ccef4a3bf09542703db to your computer and use it in GitHub Desktop.
Add basic missing functionality to UIKit
extension UIView {
var isVisible: Bool {
set {
self.isHidden = !newValue
}
get {
return !self.isHidden
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment