Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the difference between view.isHidden vs view.isVisible?

Can both be used interchangeably or one is preferred over the other in certain situations where one is better?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

They are different and not interchangeable.
Like already mentioned in the comments isVisible is not even a part of UIView.
With isHidden you can hide a view, it has a getter and setter.

https://developer.apple.com/documentation/uikit/uiview/1622585-ishidden

isVisible is a property of some classes like NSWindow. It’s read only and tells you if the instance is visible on the screen.

https://developer.apple.com/documentation/appkit/nswindow/1419132-isvisible

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading