-
-
Save pavel-sazonov/290e3ca9d94f1d6d72cf378aa106559f to your computer and use it in GitHub Desktop.
Add basic missing functionality to UIKit
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
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