Question about MVVM chapter

https://www.raywenderlich.com/books/design-patterns-by-tutorials/v3.0/chapters/10-model-view-viewmodel-pattern

Why is it using class and not struct for the view model?

View model is not suppose to know about the view. Why do we import UIKit? What if it is using SwiftUI?