I'm a bit confused about what happens when we write something like UIView.type. What is type?
Consider the following:
struct myClass {
var viewType : UIView.Type
var justView: UIView
}
The first returns to us UIView.Type, and the second is just UIView.
What is the difference? UIView is class, so we can treat that variable like any UIView. What is the point of using UIView.type?