So, I understand that to get the height of the view in Swift I can do:
viewHeight = view.frame.height
But how can I do this outside of that Swift file? I have another swift file which is a class and I need to somehow access the view height there.
I was thinking of so far:
viewHeight = MyViewController.view...
but it doesn't look like it will work.
Any ideas? All I am looking for is the height of the screen view, not any specific view. Thanks